1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-21 00:19:42 +02:00

remove multiple ands in conditional

This commit is contained in:
Kelly Brazil
2022-10-11 16:22:10 -07:00
parent 42c50c5fa1
commit 3916623c46

View File

@ -399,8 +399,9 @@ class JcCli():
else:
break
# if -h, -a, 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:
# if -a, -h, or -v found in options, then clear options and bail out
bail_opts = ('a', 'h', 'v')
if len({*bail_opts} & {*self.magic_options}):
self.magic_options = []
return