From 43d160fd00b9dfaf63e70d891eb44acdb18a251b Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 2 Oct 2009 19:06:27 +0000 Subject: [PATCH] Prefer "loglevel" over "logging level number or string" as argname of the loglevel command line option. Make the loglevel option help message more clear, since the option argument is shown as a single token, and make the whole message better aligned with the other help messages. Originally committed as revision 20149 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 2 +- ffplay.c | 2 +- ffserver.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ffmpeg.c b/ffmpeg.c index 86ea70c9d8..2988419267 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -3850,7 +3850,7 @@ static const OptionDef options[] = { { "loop_input", OPT_BOOL | OPT_EXPERT, {(void*)&loop_input}, "loop (current only works with images)" }, { "loop_output", HAS_ARG | OPT_INT | OPT_EXPERT, {(void*)&loop_output}, "number of times to loop output in formats that support looping (0 loops forever)", "" }, { "v", HAS_ARG | OPT_FUNC2, {(void*)opt_verbose}, "set ffmpeg verbosity level", "number" }, - { "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "logging level number or string" }, + { "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" }, { "target", HAS_ARG, {(void*)opt_target}, "specify target file type (\"vcd\", \"svcd\", \"dvd\", \"dv\", \"dv50\", \"pal-vcd\", \"ntsc-svcd\", ...)", "type" }, { "threads", OPT_FUNC2 | HAS_ARG | OPT_EXPERT, {(void*)opt_thread_count}, "thread count", "count" }, { "vsync", HAS_ARG | OPT_INT | OPT_EXPERT, {(void*)&video_sync_method}, "video sync method", "" }, diff --git a/ffplay.c b/ffplay.c index c47c4c2b9f..bf558e4dc5 100644 --- a/ffplay.c +++ b/ffplay.c @@ -2487,7 +2487,7 @@ static const OptionDef options[] = { { "sync", HAS_ARG | OPT_FUNC2 | OPT_EXPERT, {(void*)opt_sync}, "set audio-video sync. type (type=audio/video/ext)", "type" }, { "threads", HAS_ARG | OPT_FUNC2 | OPT_EXPERT, {(void*)opt_thread_count}, "thread count", "count" }, { "default", OPT_FUNC2 | HAS_ARG | OPT_AUDIO | OPT_VIDEO | OPT_EXPERT, {(void*)opt_default}, "generic catch all option", "" }, - { "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "logging level number or string" }, + { "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" }, { NULL, }, }; diff --git a/ffserver.c b/ffserver.c index 3471c60355..da45cfa443 100644 --- a/ffserver.c +++ b/ffserver.c @@ -4476,7 +4476,7 @@ static const OptionDef options[] = { { "version", OPT_EXIT, {(void*)show_version}, "show version" }, { "L", OPT_EXIT, {(void*)show_license}, "show license" }, { "formats", OPT_EXIT, {(void*)show_formats}, "show available formats, codecs, protocols, ..." }, - { "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "logging level number or string" }, + { "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" }, { "n", OPT_BOOL, {(void *)&no_launch }, "enable no-launch mode" }, { "d", 0, {(void*)opt_debug}, "enable debug mode" }, { "f", HAS_ARG | OPT_STRING, {(void*)&config_filename }, "use configfile instead of /etc/ffserver.conf", "configfile" },