[Portland] command line interface inconsistancies

Martin Konold martin.konold at erfrakon.de
Mon Jun 5 23:24:11 PDT 2006


Am Dienstag, 6. Juni 2006 01:38 schrieb Bastian, Waldo:

Hi Waldo,

> >What about using the GNU/POSIX convention?
>
> Well yes, but it doesn't really address the issue: why does
> xdg-screensaver use "suspend" and not "--suspend" and why does xdg-menu
> use "--user" and not "user" ?

Oh, imho it does address the issue by offering a convention so that at least 
it is handled equivalently.

> . Wrt GNU/POSIX: It's a bit awkward to 
> support -ofoo, -o=foo, and -abc from a script. Wouldn't hurt to support
> "--" in xdg-copy though.

I think "man 1 getopt" can be of greate help here because parsing of 
commandline options should not be reimplemented over and over again.

Regards,
-- martin

-- 
http://www.erfrakon.com/
Erlewein, Frank, Konold & Partner - Beratende Ingenieure und Physiker


More information about the Portland mailing list