nysus has asked for the wisdom of the Perl Monks concerning the following question:
If I use the --help switch for a command I wrote using MooseX::App::Cmd::Command, which relies on MooseX::Getopt, the order of the switches is random. For example:
~/workshop/dist_zilla: dz create_commands -h dz create_commands [-?cdhs] [long options...] creates commands for a dzil profile minted with "cli" -h -? --usage --help Prints this usage information. -d STR --dir STR directory where distribution is located -c STR --cmd STR name of the command to create -s STR... --subcmd STR... name of a subcommand to create ~/workshop/dist_zilla: dz create_commands -h dz create_commands [-?cdhs] [long options...] creates commands for a dzil profile minted with "cli" -d STR --dir STR directory where distribution is located -c STR --cmd STR name of the command to create -s STR... --subcmd STR... name of a subcommand to create -h -? --usage --help Prints this usage information.
Kind of annoying. I'd like them to be output alphabetically. I did not see an option for this, though.
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is there a way to order --help argument list output by getopt?
by nysus (Parson) on Feb 03, 2018 at 23:07 UTC | |
by LanX (Saint) on Feb 04, 2018 at 09:19 UTC | |
by nysus (Parson) on Feb 04, 2018 at 12:51 UTC | |
by LanX (Saint) on Feb 04, 2018 at 12:55 UTC | |
by nysus (Parson) on Feb 04, 2018 at 15:04 UTC | |
by nysus (Parson) on Feb 04, 2018 at 15:02 UTC |