File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,13 @@ def callback(group):
125125 extras [2 ](extras_group )
126126
127127 # collect all the remaining arguments into a list
128- parser .add_argument ('args' , nargs = argparse .REMAINDER )
128+ parser .add_argument (
129+ "args" ,
130+ nargs = argparse .REMAINDER ,
131+ help = _ (
132+ "File to extecute and additional arguments passed on to the executed script."
133+ ),
134+ )
129135
130136 try :
131137 options = parser .parse_args (args )
Original file line number Diff line number Diff line change @@ -150,14 +150,14 @@ def curtsies_arguments(parser):
150150 config , options , exec_args = bpargs .parse (
151151 args ,
152152 (
153- "curtsies options" ,
154- None ,
153+ _ ( "curtsies arguments" ) ,
154+ _ ( "Additional arguments specific to the curtsies-based REPL." ) ,
155155 curtsies_arguments ,
156156 ),
157157 )
158158 if options .log is None :
159159 options .log = 0
160- logging_levels = [ logging .ERROR , logging .INFO , logging .DEBUG ]
160+ logging_levels = ( logging .ERROR , logging .INFO , logging .DEBUG )
161161 level = logging_levels [min (len (logging_levels ) - 1 , options .log )]
162162 logging .getLogger ("curtsies" ).setLevel (level )
163163 logging .getLogger ("bpython" ).setLevel (level )
You can’t perform that action at this time.
0 commit comments