ao-load: fix usage message to note that '=' is required for options
authorKeith Packard <keithp@keithp.com>
Fri, 18 Feb 2011 17:51:37 +0000 (09:51 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 18 Feb 2011 18:04:40 +0000 (10:04 -0800)
The usage message was suggesting incorrect command line syntax; long
options use '=' between the option name and value, not whitespace.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/ao-load/ao-load.c

index 4aa91b29d415c576803c9c3d563493c3a47a7f0a..5accefc88e3f14995273df0aafcdda8aed57c7e7 100644 (file)
@@ -102,7 +102,7 @@ static const struct option options[] = {
 
 static void usage(char *program)
 {
-       fprintf(stderr, "usage: %s [--tty <tty-name>] [--device <device-name>] [--cal <radio-cal>] file.ihx serial-number\n", program);
+       fprintf(stderr, "usage: %s [--tty=<tty-name>] [--device=<device-name>] [--cal=<radio-cal>] file.ihx serial-number\n", program);
        exit(1);
 }