Skip to content

Commit 810364f

Browse files
committed
Improve description of arguments
1 parent cf81346 commit 810364f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

bpython/args.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

bpython/curtsies.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)