Skip to content

Commit 2116fcd

Browse files
committed
fixed parse() handling of help options
1 parent e78d074 commit 2116fcd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ffmpegio/ffmpeg.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ def parse(cmdline):
7777
if not is_gopt[i]:
7878
continue
7979
k = s[1:]
80-
if all_gopts[k] is None:
80+
if k in ('h','?','help','-help'): # special case take all args thereafter
81+
gopts[k] = ' '.join(args[i+1:])
82+
elif all_gopts[k] is None:
8183
gopts[k] = None
8284
else:
8385
gopts[k] = args[i + 1]

0 commit comments

Comments
 (0)