From 7f11e745b27bfbac6b2a18daffc44173530bd6d5 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Mon, 21 Dec 2009 02:15:46 +0000 Subject: Print usage instead of help when no files are specified. Originally committed as revision 20905 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ffmpeg.c') diff --git a/ffmpeg.c b/ffmpeg.c index 19e4405a5e..31580684fe 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -3995,8 +3995,11 @@ int main(int argc, char **argv) /* parse options */ parse_options(argc, argv, options, opt_output_file); - if(nb_output_files <= 0 && nb_input_files == 0) - show_help(); + if(nb_output_files <= 0 && nb_input_files == 0) { + show_usage(); + fprintf(stderr, "Use -h to get full help or, even better, run 'man ffmpeg'\n"); + av_exit(1); + } /* file converter / grab */ if (nb_output_files <= 0) { -- cgit v1.2.3