generated from jCloud/repository-template
feat(cli): make project_directory argument optional
This commit is contained in:
1 file changed
+1
-1
@@ -33,6 +33,6 @@ def existing_directory(path: str) -> pathlib.Path:
|
|||||||
|
|
||||||
def main() -> int:
|
def main() -> int:
|
||||||
argument_parser = argparse.ArgumentParser()
|
argument_parser = argparse.ArgumentParser()
|
||||||
argument_parser.add_argument('project_directory', type = existing_directory, default = pathlib.Path('.'), help = 'The directory of the project')
|
argument_parser.add_argument('project_directory', type = existing_directory, nargs = '?', default = pathlib.Path('.'), help = 'The directory of the project')
|
||||||
args = argument_parser.parse_args()
|
args = argument_parser.parse_args()
|
||||||
return 0
|
return 0
|
||||||
Reference in new issue
Block a user