It would also help if the usage msg included the version info.
- No usage message
$ ./terminat foobar
Error: unknown command "foobar" for "terminat"
Run 'terminat --help' for usage.
unknown command "foobar" for "terminat"
- incorrectly says no such flag at
--export. Usage does not show all options (looks like an old version)
$ ./terminat --export json
Error: unknown flag: --export
Usage:
terminat [command]
Available Commands:
cleanup Clean up Flow Logs data after analysis
completion Generate the autocompletion script for the specified shell
help Help about any command
scan Scan for NAT Gateway optimization opportunities
Flags:
-h, --help help for terminat
-v, --version version for terminat
Use "terminat [command] --help" for more information about a command.
unknown flag: --export
Correct Usage message
But the FOOBAR --export arg is not flagged as wrong
$ ./terminat scan deep --export FOOBAR --duration 1
Error: duration must be between 5 and 60 minutes
Usage:
terminat scan deep [flags]
Flags:
--auto-approve Skip approval prompts (for automation)
--auto-cleanup Automatically delete log groups after scan
-d, --duration int Flow Log collection duration in minutes (max 60) (default 15)
-e, --export string Export report format [json|markdown]
-h, --help help for deep
--nat-gateway-ids strings Specific NAT Gateway IDs to analyze (optional)
-o, --output string Output file path for export (requires --export)
Global Flags:
-p, --profile string AWS profile (uses AWS_PROFILE env var if not specified)
-r, --region string AWS region (uses AWS_REGION env var if not specified)
duration must be between 5 and 60 minutes
It would also help if the usage msg included the version info.
--export. Usage does not show all options (looks like an old version)Correct Usage message
But the FOOBAR
--exportarg is not flagged as wrong