Skip to content

Commit

Permalink
🐛 Fix bug introduced in ozi-fix 1.6.4.
Browse files Browse the repository at this point in the history
missing target positional argument.

Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed May 13, 2024
1 parent dd9970a commit 335558d
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions ozi/fix/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@

parser = ArgumentParser(description=sys.modules[__name__].__doc__, add_help=False)
subparser = parser.add_subparsers(help='source & test fix', dest='fix')
parser.add_argument(
'target',
type=str,
nargs='?',
default='.',
help='target OZI project directory',
)

helpers = parser.add_mutually_exclusive_group()
helpers.add_argument('-h', '--help', action='help', help='show this help message and exit')
Expand Down Expand Up @@ -53,6 +46,13 @@
action=BooleanOptionalAction,
help='pretty mode outputs indented json, default: --no-pretty',
)
missing_parser.add_argument(
'target',
type=str,
nargs='?',
default='.',
help='target OZI project directory',
)
source_parser = subparser.add_parser(
'source',
aliases=['s'],
Expand Down Expand Up @@ -88,6 +88,13 @@
help='copyright header string',
metavar='Part of the NAME project.\\nSee LICENSE...',
)
source_parser.add_argument(
'target',
type=str,
nargs='?',
default='.',
help='target OZI project directory',
)
source_output = source_parser.add_argument_group('output')
source_output.add_argument(
'--strict',
Expand Down Expand Up @@ -124,6 +131,13 @@
help='copyright header string',
metavar='Part of the NAME project.\\nSee LICENSE...',
)
test_parser.add_argument(
'target',
type=str,
nargs='?',
default='.',
help='target OZI project directory',
)
test_output = test_parser.add_argument_group('output')
test_output.add_argument(
'--strict',
Expand Down

0 comments on commit 335558d

Please sign in to comment.