Skip to content

Short + long flag sort improvement#89

Open
WaywardWizard wants to merge 2 commits intoiffy:masterfrom
WaywardWizard:short-long-flag-sort
Open

Short + long flag sort improvement#89
WaywardWizard wants to merge 2 commits intoiffy:masterfrom
WaywardWizard:short-long-flag-sort

Conversation

@WaywardWizard
Copy link
Copy Markdown

  • Support just short or just long flag
  • flag("-a") was previously written to Component.(optLong|flagLong) which is unexpected. A long form flag has the prefix "--" by convention.
  • Document further/make explicit the forms of flags allowed

tested all versions from 1.2.18 with nimble test and choosenim

this MR paves the way for a following one i have which is generation of shell completions (ive only implemented fish but scaffolded so that others could implement bash, zsh etc)

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