Skip to content

Commit

Permalink
🐛 Parsers default to target the current working dir.
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed May 13, 2024
1 parent 1b2289a commit 7628281
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ozi/fix/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

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, help='target OZI project directory')
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
2 changes: 2 additions & 0 deletions ozi/new/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@
ozi_required.add_argument(
'target',
type=str,
nargs='?',
default='.',
help='target directory for new project',
)
project_output = project_parser.add_mutually_exclusive_group()
Expand Down

0 comments on commit 7628281

Please sign in to comment.