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
The code:
The result:
Best regards,
Emanuele