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

Short version is not showed by the --help #71

Open
targzeta opened this issue Sep 8, 2021 · 2 comments
Open

Short version is not showed by the --help #71

targzeta opened this issue Sep 8, 2021 · 2 comments

Comments

@targzeta
Copy link

targzeta commented Sep 8, 2021

The code:

package Test;

use Moo;
use MooX::Options;

option 'account_id' => (is => 'ro', format => 'i', short => 'a|id');

1;

package main;

Test->new_with_options;

The result:

./test --help
USAGE: test [-h] [long options ...]

    --account_id: Int
        no doc for account_id

                                                                            
    
    --usage:
        show a short help message

    -h:
        show a compact help message

    --help:
        show a long help message

    --man:
        show the manual

Best regards,
Emanuele

@rehsack
Copy link
Collaborator

rehsack commented Sep 9, 2021

Patches welcome

@abraxxa
Copy link

abraxxa commented Jun 28, 2023

Same for negatable, doesn't add the negated option to the output.

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

No branches or pull requests

3 participants