[MPlayer-dev-eng] [PATCH] standard gnu "obligatory" arguments
Carl Fûrstenberg
azatoth at gmail.com
Sat Oct 30 20:34:18 CEST 2004
On Sat, 30 Oct 2004 20:17:17 +0200, Alexander Strasser <eclipse7 at gmx.net> wrote:
> D Richard Felker III wrote ( On Sat, Oct 30, 2004 at 11:08:56AM -0400 ):
> > On Sat, Oct 30, 2004 at 10:48:54AM +0200, Alexander Strasser wrote:
> > > D Richard Felker III wrote ( On Fri, Oct 29, 2004 at 07:58:41PM -0400 ):
> > > > On Fri, Oct 29, 2004 at 07:00:57PM +0200, Diego Biurrun wrote:
> > > > imo this functionality is not needed. mplayer does not use gnu options
> > > > to begin with, so why should it be "gnu compliant"? -version would
> > > > make sense tho...
> [cut]
> > > I always thought mplayer had no -version option cause it prints the version
> > > on every invocation. But I think such an option would still be good as
> >
> > i don't know if this is the reason or not. but...i do know the reason
> > it has no --version option, and that's that mplayer does not use "--"
> > options at all.
>
> Hey read closer, I said I thought it is the reason why there is no _-_version
> where did you get the other `-' from?
>
> But as Diego said there is a `--'-option in MPlayer called --help though it
> is a small hack but maybe ok given the fact that at least -help is there too ...
>
> Alex (beastd)
>
I was just argumenting to get rid of those arguments at first, --help
is already so I thougt --version should be also.
Also those two should be checked before anything else, and if they are
found, print the mesage and quit successfully. perhpas add smoe more
information to --verison, but the fort line is the most important.
first the name of the program (not $0) and laft the actual version.
Thing is so scripts and other things wont need to write special rules
for checking existance of mplayer.
--help should only print help-information, not as now print additional
debug information, those information should go an other way, like
--config or simlar. My patch does this and only print tha help-array.
Perhpas w shuld add a check so no other --arguments is passed, only
the empty -- if it's used in the program.
More information about the MPlayer-dev-eng
mailing list