summaryrefslogtreecommitdiff
path: root/ao-tools/ao-rawload/ao-rawload.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-02-25 16:40:13 -0800
committerKeith Packard <keithp@keithp.com>2010-02-25 16:40:13 -0800
commit5d7a3a5fbc0af4621c67a6fd51a9c9d5ae688fa5 (patch)
tree753e553247421c90344e80aa927baabf3ae9e951 /ao-tools/ao-rawload/ao-rawload.c
parent1e60deca147c85a064719dfad14ccabd1049bbbd (diff)
Fix and document the ao-rawload --run flag
This allows ram-based programs to be loaded and executed easily. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/ao-rawload/ao-rawload.c')
-rw-r--r--ao-tools/ao-rawload/ao-rawload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ao-tools/ao-rawload/ao-rawload.c b/ao-tools/ao-rawload/ao-rawload.c
index 0098b658..a4746b19 100644
--- a/ao-tools/ao-rawload/ao-rawload.c
+++ b/ao-tools/ao-rawload/ao-rawload.c
@@ -49,7 +49,7 @@ main (int argc, char **argv)
int c;
int run = 0;
- while ((c = getopt_long(argc, argv, "T:D:", options, NULL)) != -1) {
+ while ((c = getopt_long(argc, argv, "rT:D:", options, NULL)) != -1) {
switch (c) {
case 'T':
tty = optarg;
@@ -67,7 +67,7 @@ main (int argc, char **argv)
}
filename = argv[optind];
if (filename == NULL) {
- fprintf(stderr, "usage: %s <filename.ihx>\n", argv[0]);
+ usage(argv[0]);
exit(1);
}
file = fopen(filename, "r");