Feat(cli): add base command-line interface #16

Merged
jakob.scheid merged 21 commits from feature/cli into main 2026-09-13 20:11:00 +02:00
Showing only changes of commit 436dacf806 - Show all commits
+1 -1
View File
@@ -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