aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-10-02 08:55:08 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-10-02 08:55:08 +0300
commit4e3ebe248cef60d084713c34594f7103f15a4035 (patch)
tree14f283e6dc52ac8744b0b4170a58a030708510d7
parent26a387f2e0879718c97a396cc16d10378162a93b (diff)
downloadeclat-4e3ebe248cef60d084713c34594f7103f15a4035.tar.gz
eclat-4e3ebe248cef60d084713c34594f7103f15a4035.tar.bz2
Minor change
-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.