@@ -86,7 +86,11 @@ def __init__(self, args: Optional[List[str]]):
86
86
87
87
parser = argparse .ArgumentParser ()
88
88
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" )
90
94
91
95
# the following parameter is added only to avoid parsing errors.
92
96
# Actually we use its value from `args` before running ArgumentParser
@@ -96,36 +100,36 @@ def __init__(self, args: Optional[List[str]]):
96
100
subparsers = parser .add_subparsers (dest = 'command' , required = True )
97
101
98
102
parser_init = subparsers .add_parser (Commands .create .name ,
99
- help = "create new virtualenv " )
103
+ help = "create new virtual environment " )
100
104
parser_init .add_argument ('python' , type = str , default = None ,
101
105
nargs = '?' )
102
106
103
107
subparsers .add_parser (Commands .delete .name ,
104
- help = "delete existing virtualenv " )
108
+ help = "delete existing environment " )
105
109
106
110
parser_reinit = subparsers .add_parser (
107
111
Commands .recreate .name ,
108
- help = "delete existing virtualenv and create new" )
112
+ help = "delete existing environment and create new" )
109
113
parser_reinit .add_argument ('python' , type = str , default = None ,
110
114
nargs = '?' )
111
115
112
116
if is_posix or enable_windows_all_args :
113
117
shell_parser = subparsers .add_parser (
114
118
Commands .shell .name ,
115
- help = "dive into Bash sub-shell using the virtualenv " )
119
+ help = "dive into Bash sub-shell with the environment " )
116
120
shell_parser .add_argument ("--input" , type = str , default = None )
117
121
shell_parser .add_argument ("--delay" , type = float , default = None ,
118
122
help = argparse .SUPPRESS )
119
123
120
124
if is_posix or enable_windows_all_args :
121
125
parser_run = subparsers .add_parser (
122
126
Commands .run .name ,
123
- help = "run a command inside the virtualenv " )
127
+ help = "run a shell command in the environment " )
124
128
parser_run .add_argument ('otherargs' , nargs = argparse .REMAINDER )
125
129
126
130
parser_call = subparsers .add_parser (
127
131
Commands .call .name ,
128
- help = "run a script inside the virtualenv " )
132
+ help = "run a .py file in the environment " )
129
133
# todo Remove it later. [call -p] is outdated since 2021-05
130
134
parser_call .add_argument ("--project-dir" , "-p" , default = None , type = str ,
131
135
dest = "outdated_call_project_dir" ,
@@ -136,8 +140,8 @@ def __init__(self, args: Optional[List[str]]):
136
140
137
141
subparsers .add_parser (
138
142
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 " )
141
145
142
146
if not args :
143
147
print (usage_doc ())
0 commit comments