Skip to content

Commit 0c706ac

Browse files
Merge f7edd9e into master
2 parents 9cd1007 + f7edd9e commit 0c706ac

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

vien/_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "8.0.3"
1+
__version__ = "8.0.4"
22
__copyright__ = "(c) 2020-2021 Artëm IG <github.com/rtmigo>"
33
__license__ = "BSD-3-Clause"
44

vien/_parsed_args.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ def __init__(self, args: Optional[List[str]]):
8686

8787
parser = argparse.ArgumentParser()
8888

89-
parser.add_argument("--project-dir", "-p", default=None, type=str)
89+
parser.add_argument("--project-dir", "-p", default=None, type=str,
90+
help="the Python project directory "
91+
"(default: current working directory). "
92+
"Implicitly determines which virtual "
93+
"environment should be used for the command")
9094

9195
# the following parameter is added only to avoid parsing errors.
9296
# Actually we use its value from `args` before running ArgumentParser
@@ -96,36 +100,36 @@ def __init__(self, args: Optional[List[str]]):
96100
subparsers = parser.add_subparsers(dest='command', required=True)
97101

98102
parser_init = subparsers.add_parser(Commands.create.name,
99-
help="create new virtualenv")
103+
help="create new virtual environment")
100104
parser_init.add_argument('python', type=str, default=None,
101105
nargs='?')
102106

103107
subparsers.add_parser(Commands.delete.name,
104-
help="delete existing virtualenv")
108+
help="delete existing environment")
105109

106110
parser_reinit = subparsers.add_parser(
107111
Commands.recreate.name,
108-
help="delete existing virtualenv and create new")
112+
help="delete existing environment and create new")
109113
parser_reinit.add_argument('python', type=str, default=None,
110114
nargs='?')
111115

112116
if is_posix or enable_windows_all_args:
113117
shell_parser = subparsers.add_parser(
114118
Commands.shell.name,
115-
help="dive into Bash sub-shell using the virtualenv")
119+
help="dive into Bash sub-shell with the environment")
116120
shell_parser.add_argument("--input", type=str, default=None)
117121
shell_parser.add_argument("--delay", type=float, default=None,
118122
help=argparse.SUPPRESS)
119123

120124
if is_posix or enable_windows_all_args:
121125
parser_run = subparsers.add_parser(
122126
Commands.run.name,
123-
help="run a command inside the virtualenv")
127+
help="run a shell command in the environment")
124128
parser_run.add_argument('otherargs', nargs=argparse.REMAINDER)
125129

126130
parser_call = subparsers.add_parser(
127131
Commands.call.name,
128-
help="run a script inside the virtualenv")
132+
help="run a .py file in the environment")
129133
# todo Remove it later. [call -p] is outdated since 2021-05
130134
parser_call.add_argument("--project-dir", "-p", default=None, type=str,
131135
dest="outdated_call_project_dir",
@@ -136,8 +140,8 @@ def __init__(self, args: Optional[List[str]]):
136140

137141
subparsers.add_parser(
138142
Commands.path.name,
139-
help="show the supposed path of the virtualenv "
140-
"for the current directory")
143+
help="show the path of the environment "
144+
"for the project")
141145

142146
if not args:
143147
print(usage_doc())

0 commit comments

Comments
 (0)