Summary
During v0.6.14 production surface verification, supermodel restore --local --dir /definitely/missing correctly failed with a missing-directory error.
One polish issue surfaced: supermodel restore --local /some/path silently ignores the positional argument because the command only reads the --dir flag and does not validate args. The command docs/examples use --dir, so this is not blocking, but it is easy to misread from a CLI-user perspective.
Proposed fix
Pick one behavior and test it:
- Prefer: accept an optional positional path (
restore [path]) and map it to the same behavior as --dir.
- Alternative: set
Args: cobra.NoArgs so unexpected positional args fail fast.
Verification context
- Release: v0.6.14
- Happy path verified:
restore . --local --max-tokens 1000
- Reverse path verified:
restore --local --dir /definitely/missing exits non-zero
Summary
During v0.6.14 production surface verification,
supermodel restore --local --dir /definitely/missingcorrectly failed with a missing-directory error.One polish issue surfaced:
supermodel restore --local /some/pathsilently ignores the positional argument because the command only reads the--dirflag and does not validate args. The command docs/examples use--dir, so this is not blocking, but it is easy to misread from a CLI-user perspective.Proposed fix
Pick one behavior and test it:
restore [path]) and map it to the same behavior as--dir.Args: cobra.NoArgsso unexpected positional args fail fast.Verification context
restore . --local --max-tokens 1000restore --local --dir /definitely/missingexits non-zero