---
name: "CLI treats --help and --version as project paths"
---

# Bug 369: CLI treats --help and --version as project paths

## Description

When running `huskies <anything>`, the binary treats the first argument as a project path, creates a directory for it, and scaffolds `.huskies/` inside. This happens for `--help`, `--version`, `serve`, `x`, or any other string. There is no validation that the argument is an existing directory or a reasonable path before creating it.

## How to Reproduce

1. Run `huskies --help` or `huskies serve` or `huskies x` in any directory
2. Observe that a directory with that name is created with a full `.huskies/` scaffold inside it

## Actual Result

Any argument is treated as a project path and a directory is created and scaffolded. No flags are recognised.

## Expected Result

- `huskies --help` prints usage info and exits
- `huskies --version` prints the version and exits
- `huskies <path>` only works if the path already exists as a directory
- If the path does not exist, huskies prints a clear error and exits non-zero

## Acceptance Criteria

- [ ] huskies --help prints usage information and exits with code 0
- [ ] huskies --version prints the version and exits with code 0
- [ ] huskies -h and huskies -V work as short aliases
- [ ] huskies does not create directories for any argument — the path must already exist
- [ ] If the path does not exist, huskies prints a clear error and exits non-zero
- [ ] Arguments starting with - that are not recognised produce a clear error message
