summaryrefslogtreecommitdiff
path: root/programs/sndfile-metadata-get.c
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2008-10-25 10:27:38 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2008-10-25 10:27:38 +1100
commit0455f9d83088244f75d04dd099abf72afb4e9730 (patch)
tree537e4fa18d5444d6be79f5a5af08e99914be7c61 /programs/sndfile-metadata-get.c
parent50112e2bb7ac8c037c3ed3cd7e5b8f151d5f6417 (diff)
programs/sndfile-metadata-get.c : Exit with non-zero for bad command line argument.
Diffstat (limited to 'programs/sndfile-metadata-get.c')
-rw-r--r--programs/sndfile-metadata-get.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/programs/sndfile-metadata-get.c b/programs/sndfile-metadata-get.c
index 5ece575..1aa890d 100644
--- a/programs/sndfile-metadata-get.c
+++ b/programs/sndfile-metadata-get.c
@@ -165,7 +165,9 @@ process_args (SNDFILE * file, const SF_BROADCAST_INFO * binfo, int argc, char *
HANDLE_STR_ARG ("--str-license", "License", SF_STR_LICENSE) ;
if (! do_all)
- printf ("Error : Don't know what to do with command line arg '%s'.\n\n", argv [k]) ;
+ { printf ("Error : Don't know what to do with command line arg '%s'.\n\n", argv [k]) ;
+ exit (1) ;
+ } ;
break ;
} ;