[Portland] command line interface inconsistancies

Bryce Harrington bryce at osdl.org
Tue Jun 6 01:46:11 PDT 2006


On Mon, Jun 05, 2006 at 09:30:59AM -0700, Whipple, Tom wrote:
> I would like to point out that the interface across the utils is
> inconsistent. For example the following 3 commands all have required
> arguments, but are different in the way that the arguments are
> formatted.
> 
> 1. $ xdg-screensaver suspend 5
> 2. $ xdg-su -c 'touch foo.txt'
> 3. $ xdg-file-dialog --openfile foo.txt
> 
> I think that one standard needs to be applied to all of the utils. 
> 
> I suggest that as in #1, required arguments have no dashes.

Agreed.  It is extremely confusing when a script has an option flag that
is required.

> As in #3
> options with long names (eg --vendor) have two dashes. I would also
> suggest that commonly used options have "shortcuts" (eg -h == --help),
> where it makes sense.

Yes, agreed; it's irritating that this isn't supported already.

Bryce


More information about the Portland mailing list