[FFmpeg-devel] [PATCH] Remove unnecessary calls to show_help()

Stefano Sabatini stefano.sabatini-lala
Tue Nov 18 00:22:30 CET 2008


On date Sunday 2008-11-16 11:34:16 -0300, Reynaldo H. Verdejo Pinochet encoded:
> Hello
> 
> Stefano Sabatini wrote:
> > Hi,
> > 
> > ffmpeg and ffplay launched without arguments shouldn't show the help,
> > they should tell what's wrong with the used syntax.
> 
> I was thinking that if an error parsing the cmd line is found (no
> arguments or whatever) it would be nice to point the user to the
> -h flag in the exit message itself. Just an idea.

This would require:

1) rewrite all the error messages
or
2) provide a wrapper function and use it everywhere there is an error
message

both solutions are not very nice, also I think they're overkill, the
user should read the man page when he doesn't know nothing about the
syntax.

Another way better solution would be to use some form of automatic
completion to immediately figure out which are the valid options (I
started to write sometime ago the completions for fish, if you're
interested I can post them here).

Regards.
-- 
FFmpeg = Furious and Fantastic Meaningless Portentous Extreme Gospel




More information about the ffmpeg-devel mailing list