diff options
author | Mans Rullgard <mans@mansr.com> | 2011-10-07 13:29:03 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-10-09 16:53:06 +0100 |
commit | 8124d8ad6654d9b26725e86f6fffbb00527975d4 (patch) | |
tree | 53173dedcc0b644764fbb531fddc06ac69350541 /cmdutils.c | |
parent | f5646a325b94a077bf9849d5f6a4b3d4e69ed37b (diff) | |
download | ffmpeg-8124d8ad6654d9b26725e86f6fffbb00527975d4.tar.gz |
avtools: add -v as alias for -loglevel
This saves a bit of typing.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c index 2c37880d74..77bad25e33 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -335,6 +335,8 @@ static int locate_option(int argc, char **argv, const OptionDef *options, const void parse_loglevel(int argc, char **argv, const OptionDef *options) { int idx = locate_option(argc, argv, options, "loglevel"); + if (!idx) + idx = locate_option(argc, argv, options, "v"); if (idx && argv[idx + 1]) opt_loglevel("loglevel", argv[idx + 1]); } |