Skip to content

Add sev help subcommand aliasing top-level usage - #31

Merged
KTSCode merged 2 commits into
mainfrom
todo/add_help_subcommand
Jun 4, 2026
Merged

Add sev help subcommand aliasing top-level usage#31
KTSCode merged 2 commits into
mainfrom
todo/add_help_subcommand

Conversation

@KTSCode

@KTSCode KTSCode commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add help as a real subcommand that resolves to {:help, []}, so sev help prints the top-level usage block (alias for sev --help)
  • help now appears in the generated subcommand list, making it discoverable
  • Per-subcommand usage via sev <cmd> --help (e.g. sev status --help) is unchanged
  • Document the alias in the module usage block, README usage, and CHANGELOG

Test plan

  • mix test test/severance/cli_test.exs — added parse_args(["help"]) == {:help, []}, 64 passed
  • mix quality (full, incl. dialyzer) green via pre-commit hook
  • Manually rendered Severance.CLI.usage()help listed under Sub-commands

KTSCode added 2 commits June 4, 2026 15:53
…usage (per-subcommand usage via `sev <cmd> --help`, e.g. `sev status --help`, now renders that command's args/flags)
@KTSCode
KTSCode merged commit 4f6dede into main Jun 4, 2026
@KTSCode
KTSCode deleted the todo/add_help_subcommand branch June 4, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant