From 436dacf80604472614f64ca0c0a2e7cfb0d8b059 Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Sat, 5 Sep 2026 19:48:59 +0200 Subject: [PATCH] feat(cli): make project_directory argument optional --- src/jcloud_docsgen/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jcloud_docsgen/cli.py b/src/jcloud_docsgen/cli.py index b153c0a..0c0596e 100644 --- a/src/jcloud_docsgen/cli.py +++ b/src/jcloud_docsgen/cli.py @@ -33,6 +33,6 @@ def existing_directory(path: str) -> pathlib.Path: def main() -> int: 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() return 0