storkit: create 369_bug_cli_treats_help_and_version_as_project_paths
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user