1
0
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:
Kelly Brazil
2022-10-03 15:04:18 -07:00
parent 49ba6ed0f2
commit d173b2f237
2 changed files with 2 additions and 1 deletions

View File

@ -419,6 +419,7 @@ Examples:
# parser found - use standard syntax
if arg.startswith('--'):
self.magic_options = []
return
# option found - populate option list

View File

@ -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']),