Minor fix
Showing
1 changed file
with
6 additions
and
4 deletions
... | @@ -875,6 +875,12 @@ main (int argc, char **argv) | ... | @@ -875,6 +875,12 @@ main (int argc, char **argv) |
875 | mu_argp_init (program_version, NULL); | 875 | mu_argp_init (program_version, NULL); |
876 | mh_argp_parse (&argc, &argv, 0, options, mh_option, args_doc, doc, | 876 | mh_argp_parse (&argc, &argv, 0, options, mh_option, args_doc, doc, |
877 | opt_handler, NULL, &index); | 877 | opt_handler, NULL, &index); |
878 | |||
879 | /* If folder is invoked by a name ending with "s" (e.g., folders), | ||
880 | `-all' is assumed */ | ||
881 | if (program_invocation_short_name[strlen (program_invocation_short_name) - 1] == 's') | ||
882 | show_all = 1; | ||
883 | |||
878 | if (has_folder) | 884 | if (has_folder) |
879 | { | 885 | { |
880 | /* If a +folder is given along with the -all switch, folder will, in | 886 | /* If a +folder is given along with the -all switch, folder will, in |
... | @@ -885,10 +891,6 @@ main (int argc, char **argv) | ... | @@ -885,10 +891,6 @@ main (int argc, char **argv) |
885 | max_depth = 2; | 891 | max_depth = 2; |
886 | show_all = 0; | 892 | show_all = 0; |
887 | } | 893 | } |
888 | /* If folder is invoked by a name ending with "s" (e.g., folders), | ||
889 | `-all' is assumed */ | ||
890 | else if (program_invocation_short_name[strlen (program_invocation_short_name) - 1] == 's') | ||
891 | show_all = 1; | ||
892 | 894 | ||
893 | if (argc - index == 1) | 895 | if (argc - index == 1) |
894 | { | 896 | { | ... | ... |
-
Please register or sign in to post a comment