Commit d09cfce7 by Bjorn Neergaard Committed by Arun Babu Neelicattu

Resolve tildes in `self update`, add help text to get-poetry.py

parent 5e70eb8d
...@@ -946,24 +946,43 @@ def main(): ...@@ -946,24 +946,43 @@ def main():
description="Installs the latest (or given) version of poetry" description="Installs the latest (or given) version of poetry"
) )
parser.add_argument( parser.add_argument(
"-p", "--preview", dest="preview", action="store_true", default=False "-p",
"--preview",
help="install preview version",
dest="preview",
action="store_true",
default=False,
) )
parser.add_argument("--version", dest="version") parser.add_argument("--version", help="install named version", dest="version")
parser.add_argument( parser.add_argument(
"-f", "--force", dest="force", action="store_true", default=False "-f",
"--force",
help="install on top of existing version",
dest="force",
action="store_true",
default=False,
) )
parser.add_argument( parser.add_argument(
"-P",
"--no-modify-path", "--no-modify-path",
help="do not modify $PATH",
dest="no_modify_path", dest="no_modify_path",
action="store_true", action="store_true",
default=False, default=False,
) )
parser.add_argument( parser.add_argument(
"-y", "--yes", dest="accept_all", action="store_true", default=False "-y",
"--yes",
help="accept all prompts",
dest="accept_all",
action="store_true",
default=False,
) )
parser.add_argument( parser.add_argument(
"--uninstall", dest="uninstall", action="store_true", default=False "--uninstall",
help="uninstall poetry",
dest="uninstall",
action="store_true",
default=False,
) )
parser.add_argument( parser.add_argument(
"--file", "--file",
......
...@@ -37,9 +37,8 @@ class SelfUpdateCommand(Command): ...@@ -37,9 +37,8 @@ class SelfUpdateCommand(Command):
@property @property
def home(self): def home(self):
from poetry.utils._compat import Path from poetry.utils._compat import Path
from poetry.utils.appdirs import expanduser
return Path(os.environ.get("POETRY_HOME", expanduser("~/.poetry"))) return Path(os.environ.get("POETRY_HOME", "~/.poetry")).expanduser()
@property @property
def lib(self): def lib(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment