Command and option aliases #3

Open
opened 2026-09-06 17:09:43 +00:00 by walt · 1 comment
Owner

Command and option aliases

Add lightweight alias support for commands and options.

Examples:

.command("build", build, |cmd| {
    cmd.alias("b")
})

Then:

app build
app b

should resolve to the same command.

Also support additional option aliases / short forms where useful.

Example:

-v, --verbose

Potential future extension:

-v, -V, --verbose
## Command and option aliases Add lightweight alias support for commands and options. Examples: ```rust .command("build", build, |cmd| { cmd.alias("b") }) ``` Then: ```bash app build app b ``` should resolve to the same command. Also support additional option aliases / short forms where useful. Example: ```text -v, --verbose ``` Potential future extension: ```text -v, -V, --verbose ```
Author
Owner

Partially implemented in v0.2.0.

Completed:

  • command aliases via .alias(...)
  • multiple aliases per command
  • aliases resolve to the same handler
  • Request.command preserves the canonical command name
  • aliases are shown in help output

Still open:

  • additional option aliases / multiple short forms
  • e.g. -v, -V, --verbose

Leaving this issue open until option alias support lands.

Partially implemented in v0.2.0. Completed: - command aliases via .alias(...) - multiple aliases per command - aliases resolve to the same handler - Request.command preserves the canonical command name - aliases are shown in help output Still open: - additional option aliases / multiple short forms - e.g. -v, -V, --verbose Leaving this issue open until option alias support lands.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
walt/walts-cli#3
No description provided.