mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-23 00:29:59 +02:00
remove multiple ands in conditional
This commit is contained in:
@ -399,8 +399,9 @@ class JcCli():
|
|||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
# if -h, -a, or -v found in options, then clear options and bail out
|
# if -a, -h, or -v found in options, then clear options and bail out
|
||||||
if 'h' in self.magic_options or 'a' in self.magic_options or 'v' in self.magic_options:
|
bail_opts = ('a', 'h', 'v')
|
||||||
|
if len({*bail_opts} & {*self.magic_options}):
|
||||||
self.magic_options = []
|
self.magic_options = []
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user