aboutsummaryrefslogtreecommitdiffstats
path: root/ponymix.c
diff options
context:
space:
mode:
Diffstat (limited to 'ponymix.c')
-rw-r--r--ponymix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ponymix.c b/ponymix.c
index 6177875..81ef211 100644
--- a/ponymix.c
+++ b/ponymix.c
@@ -755,7 +755,7 @@ int main(int argc, char *argv[])
verb = string_to_verb(argv[optind++]);
if (verb == ACTION_INVALID)
- errx(EXIT_FAILURE, "unknown action: %s", argv[optind]);
+ errx(EXIT_FAILURE, "unknown action: %s", argv[optind - 1]);
if (actions[verb].argreq != (argc - optind))
errx(EXIT_FAILURE, "wrong number of args for %s command (requires %d)",