+ Add 'sort' for '--list-mode' options (better :)
This commit is contained in:
parent
51efd04878
commit
a56f987f6c
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue