From 8a7678a8dc3736b50351ea89e838405a158092db Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Wed, 5 Sep 2012 03:10:11 +0900 Subject: Print usage in case using -o without outputfile. --- tools/xpcat/xpcat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; + } } } -- cgit v1.2.3