[MPlayer-dev-eng] [PATCH] standard gnu "obligatory" arguments

D Richard Felker III dalias at aerifal.cx
Sat Oct 30 17:08:56 CEST 2004


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:
> > > Carl Fûrstenberg writes:
> > > > this tiny patch first adds support for the --version argument, and
> > > > also on both --version and --help stops the program after text is
> > > > shown, as written at
> > > > http://www.gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html#Command_002dLine-Interfaces
> > > > 
> > > > old help-function is not removed yet, can be done later.
> > > 
> > > Did you test your patch?
> > > 
> > > silver:/usr/src/mplayer/dev$ ./mplayer --version
> > > MPlayer dev-CVS-041009-21:35-3.3.4 (C) 2000-2004 MPlayer Team
> > > CPU: Advanced Micro Devices K6-2+/K6-III+ Sharptooth (Family: 5, Stepping: 0)
> > > Detected cache-line size is 32 bytes
> > > Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
> > > Reading config file /home/diego/.mplayer/config
> > > You added '--' but no filenames presented!
> > 
> > :))
> > 
> > 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...
> 
> haha, same thing I wanted to say... but anyway good you said it, so I'm
> not one of those evil MPlayer devels ;)

:)

> 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.

rich




More information about the MPlayer-dev-eng mailing list