Allan N. Snider wrote:
> Attached is a patch (against v1.1.0), that makes a minor change to
> the argument parsing code. When the parameter(s) of a filter argument
> are retrieved the code skips past the argument name plus one character,
> which it assumes is the '=' sign. I modified it to only skip the '=' if
> it is in fact an equal sign. When this is done, it allows a more
> convenient form for optional string values ("%s"), for example:
>
> -J filter=arg[=string]
>
> I can do a lookup on arg and provide a default if no value is present,
> or use the provided string. Without the patch, a statement like '-J
> filter=arg1:arg2', would yeild arg2 as the string value for arg1.
>
> I don't think this change has any other side affect. It's
> aesthetically more pleasing then having to write:
>
> -J filter=arg1=:arg2
>
Agreed, that is better not to rely on counting.
Have you considered also fixing the mishandling
of embedded commas in quoted optional argument
lists?
For example:
-x mplayer="-vf eq2=0.9,pp=dr",mplayer
Causes the tokenizer to choke. It is possible that
there was an earlier transcode version that handled
this correctly.
It's also possible that I am using the wrong quoting
syntax ;^)