Skip to content

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

Description

@targzeta

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions