From eb8adb62259104f8961c0c976260e008ddcc2000 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 23 Mar 2026 12:39:15 +0000 Subject: [PATCH] storkit: create 369_bug_cli_treats_help_and_version_as_project_paths --- ...reats_help_and_version_as_project_paths.md | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .storkit/work/1_backlog/369_bug_cli_treats_help_and_version_as_project_paths.md diff --git a/.storkit/work/1_backlog/369_bug_cli_treats_help_and_version_as_project_paths.md b/.storkit/work/1_backlog/369_bug_cli_treats_help_and_version_as_project_paths.md new file mode 100644 index 0000000..c996422 --- /dev/null +++ b/.storkit/work/1_backlog/369_bug_cli_treats_help_and_version_as_project_paths.md @@ -0,0 +1,30 @@ +--- +name: "CLI treats --help and --version as project paths" +--- + +# Bug 369: CLI treats --help and --version as project paths + +## Description + +When running `storkit --help` or `storkit --version`, the binary interprets the flags as a project path argument, creates directories named `--help` and `--version`, and scaffolds a storkit project inside them. + +## How to Reproduce + +1. Run `storkit --help` in any directory +2. Observe that a directory called `--help` is created with a full `.storkit/` scaffold inside it + +## Actual Result + +Directories named `--help` and `--version` are created and treated as project paths. No help or version info is shown. + +## Expected Result + +`storkit --help` prints usage info and exits. `storkit --version` prints the version and exits. Neither should create directories or scaffold anything. + +## Acceptance Criteria + +- [ ] storkit --help prints usage information and exits with code 0 +- [ ] storkit --version prints the version and exits with code 0 +- [ ] storkit -h and storkit -V work as short aliases +- [ ] No directories are created when help or version flags are passed +- [ ] Arguments starting with -- that are not recognised produce a clear error message