Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(non-breaking) abbreviated arguments provided by SuperMAIN are not shown in USAGE #6

Open
codesections opened this issue Jul 6, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@codesections
Copy link

A module with the content

sub MAIN(Str :n(:$named)) {}

generates the following USAGE info:

$ raku SuperMAIN-test.raku --help
Usage:
  SuperMAIN-test.raku [-n|--named=<Str>]

When using SuperMAIN to automatically generate the short argument, however, the usage message is

$ raku SuperMAIN-test.raku --help
Usage:
  SuperMAIN-test.raku [--named=<Str>]

(even though the short option is still accepted).

This is pretty minor and might even be better (it keeps the USAGE output a bit cleaner). But I thought I'd mention it regardless, since it's a difference from the default that I didn't expect.

@nxadm
Copy link
Owner

nxadm commented Jul 6, 2020

I looked into this and it's on my TODO. However, this is not so straightforward.

@nxadm nxadm added the enhancement New feature or request label Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants