@@ -67,6 +67,7 @@ class Commands(Enum):
67
67
68
68
69
69
class TempColumns :
70
+ """Temporary changes os.environ['COLUMNS'] to a smaller value."""
70
71
def __init__ (self , width : int ):
71
72
self .width = width
72
73
self ._old_value : Optional [str ] = None
@@ -110,7 +111,7 @@ def __init__(self, args: Optional[List[str]]):
110
111
111
112
parser = argparse .ArgumentParser ()
112
113
113
- parser .add_argument ("--project-dir " , "-p " , default = None , type = str ,
114
+ parser .add_argument ("-p " , "--project-dir " , default = None , type = str ,
114
115
help = "the Python project directory "
115
116
"(default: current working directory). "
116
117
"Implicitly determines which virtual "
@@ -159,7 +160,7 @@ def __init__(self, args: Optional[List[str]]):
159
160
Commands .call .name ,
160
161
help = "run a .py file in the environment" )
161
162
# todo Remove it later. [call -p] is outdated since 2021-05
162
- parser_call .add_argument ("--project-dir " , "-p " , default = None ,
163
+ parser_call .add_argument ("-p " , "--project-dir " , default = None ,
163
164
type = str ,
164
165
dest = "outdated_call_project_dir" ,
165
166
help = argparse .SUPPRESS )
0 commit comments