summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMasaki Muranaka <[email protected]>2012-09-05 03:10:11 +0900
committerMasaki Muranaka <[email protected]>2012-09-05 03:10:11 +0900
commit8a7678a8dc3736b50351ea89e838405a158092db (patch)
tree22699b74bb5b52e69239d7e139b90be0dcc0d1ce
parenteb080397fa0c3a9bc680f511a563be87920bcc37 (diff)
downloadmruby-8a7678a8dc3736b50351ea89e838405a158092db.tar.gz
mruby-8a7678a8dc3736b50351ea89e838405a158092db.zip
Print usage in case using -o without outputfile.
-rw-r--r--tools/xpcat/xpcat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/xpcat/xpcat.c b/tools/xpcat/xpcat.c
index ce3d5854e..20528c20d 100644
--- a/tools/xpcat/xpcat.c
+++ b/tools/xpcat/xpcat.c
@@ -26,8 +26,10 @@ main(int argc, char *argv[])
i++;
if (i < argc)
output = argv[i];
- else
+ else {
+ usage(argv[0]);
return EXIT_FAILURE;
+ }
}
}