mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-08-08 22:36:48 +02:00
fix magic parser for cases where standard parser is found
This commit is contained in:
@ -419,6 +419,7 @@ Examples:
|
||||
|
||||
# parser found - use standard syntax
|
||||
if arg.startswith('--'):
|
||||
self.magic_options = []
|
||||
return
|
||||
|
||||
# option found - populate option list
|
||||
|
@ -24,7 +24,7 @@ class MyTests(unittest.TestCase):
|
||||
'jc -a arp -a': (None, [], None),
|
||||
'jc -v': (None, [], None),
|
||||
'jc -h': (None, [], None),
|
||||
'jc -h --arp': (None, ['h'], None),
|
||||
'jc -h --arp': (None, [], None),
|
||||
'jc -h arp': (None, [], None),
|
||||
'jc -h arp -a': (None, [], None),
|
||||
'jc --pretty dig': ('--dig', ['p'], ['dig']),
|
||||
|
Reference in New Issue
Block a user