Skip to content

Commit 3975126

Browse files
committed
Fixed another Flake warning
1 parent 67cea82 commit 3975126

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cmd2/cmd2.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3204,15 +3204,13 @@ 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
3208-
or args.transcript or args.expanded or args.script):
3207+
if args.clear or args.edit or args.output_file or args.run or args.transcript or args.expanded or args.script:
32093208
self.poutput("-v can not be used with any other options")
32103209
self.poutput(self.history_parser.format_usage())
32113210
return
32123211

32133212
# -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
3215-
or args.transcript):
3213+
if (args.script or args.expanded) and (args.clear or args.edit or args.output_file or args.run or args.transcript):
32163214
self.poutput("-s and -x can not be used with -c, -r, -e, -o, or -t")
32173215
self.poutput(self.history_parser.format_usage())
32183216
return

0 commit comments

Comments
 (0)