+ Add 'sort' for '--list-mode' options (better :)

This commit is contained in:
Quentin Garnier 2015-01-27 11:48:33 +01:00
parent 51efd04878
commit a56f987f6c
5 changed files with 5 additions and 5 deletions

View File

@ -217,7 +217,7 @@ sub list_mode {
$self->{options}->display_help();
$self->{output}->add_option_msg(long_msg => "Modes Available:");
foreach (keys %{$self->{modes}}) {
foreach (sort keys %{$self->{modes}}) {
$self->{output}->add_option_msg(long_msg => " " . $_);
}
$self->{output}->option_exit(nolabel => 1);

View File

@ -173,7 +173,7 @@ sub list_mode {
$self->{options}->display_help();
$self->{output}->add_option_msg(long_msg => "Modes Available:");
foreach (keys %{$self->{modes}}) {
foreach (sort keys %{$self->{modes}}) {
$self->{output}->add_option_msg(long_msg => " " . $_);
}
$self->{output}->option_exit(nolabel => 1);

View File

@ -181,7 +181,7 @@ sub list_mode {
$self->{options}->display_help();
$self->{output}->add_option_msg(long_msg => "Modes Available:");
foreach (keys %{$self->{modes}}) {
foreach (sort keys %{$self->{modes}}) {
$self->{output}->add_option_msg(long_msg => " " . $_);
}
$self->{output}->option_exit(nolabel => 1);

View File

@ -223,7 +223,7 @@ sub list_mode {
$self->{options}->display_help();
$self->{output}->add_option_msg(long_msg => "Modes Available:");
foreach (keys %{$self->{modes}}) {
foreach (sort keys %{$self->{modes}}) {
$self->{output}->add_option_msg(long_msg => " " . $_);
}
$self->{output}->option_exit(nolabel => 1);

View File

@ -177,7 +177,7 @@ sub list_mode {
$self->{options}->display_help();
$self->{output}->add_option_msg(long_msg => "Modes Available:");
foreach (keys %{$self->{modes}}) {
foreach (sort keys %{$self->{modes}}) {
$self->{output}->add_option_msg(long_msg => " " . $_);
}
$self->{output}->option_exit(nolabel => 1);