Skip to content

Commit f797dae

Browse files
committed
Fixed flake warnings
1 parent 0b84d1b commit f797dae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd2/cmd2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3204,15 +3204,15 @@ def do_history(self, args: argparse.Namespace) -> None:
32043204

32053205
# -v must be used alone with no other options
32063206
if args.verbose:
3207-
if (args.clear or args.edit or args.output_file or args.run or
3208-
args.transcript or args.expanded or args.script):
3207+
if (args.clear or args.edit or args.output_file or args.run
3208+
or args.transcript or args.expanded or args.script):
32093209
self.poutput("-v can not be used with any other options")
32103210
self.poutput(self.history_parser.format_usage())
32113211
return
32123212

32133213
# -s and -x can only be used if none of these options are present: [-c -r -e -o -t]
3214-
if (args.script or args.expanded) and (args.clear or args.edit or args.output_file or args.run or
3215-
args.transcript):
3214+
if (args.script or args.expanded) and (args.clear or args.edit or args.output_file or args.run
3215+
or args.transcript):
32163216
self.poutput("-s and -x can not be used with -c, -r, -e, -o, or -t")
32173217
self.poutput(self.history_parser.format_usage())
32183218
return

0 commit comments

Comments
 (0)