diff options
Diffstat (limited to 'src/modules/segway/segway_main.cpp')
-rw-r--r-- | src/modules/segway/segway_main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/segway/segway_main.cpp b/src/modules/segway/segway_main.cpp index ee492f85a..b36d56d6d 100644 --- a/src/modules/segway/segway_main.cpp +++ b/src/modules/segway/segway_main.cpp @@ -92,8 +92,9 @@ usage(const char *reason) int segway_main(int argc, char *argv[]) { - if (argc < 1) + if (argc < 2) { usage("missing command"); + } if (!strcmp(argv[1], "start")) { |