aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/eclat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eclat.c b/src/eclat.c
index a0a7be0..1642699 100644
--- a/src/eclat.c
+++ b/src/eclat.c
@@ -591,9 +591,9 @@ main(int argc, char **argv)
argv += index;
if (match_command_mode) {
- if (argc != 1)
+ if (argc > 1)
die(EX_USAGE, "wrong number of arguments");
- print_matching_commands(argv[0]);
+ print_matching_commands(argc == 1 ? argv[0] : "-");
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.