gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] [BUG] tla dosen't handle '--' as end of option argu


From: Yann Droneaud
Subject: Re: [Gnu-arch-users] [BUG] tla dosen't handle '--' as end of option argument
Date: Sun, 12 Sep 2004 00:30:17 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Tom Lord <address@hidden> writes:

>     > From: Bug Goo <address@hidden>
>
>     > > tla doesn't accept '--' as the end of option argument,
>     > > so commands fails, such as 
>
> Part of fixing this bug ought to include working up a standard for CLI
> syntaxes for TLI subcommands.   (Some already use '--' for another
> purpose, but, in general, it might be handy to have some specific
> rules for common behavior, developed while considering the impact from
> multiple perspectives.)
>

I've done a litte audit on the usage of '--' :

*tla commit -- files
*tla undo -- files

'--' is use as command line switch, so it's not transparent and don't
follow POSIX behavor.

I would really prefer to see a '--files' option along with
'--files-list' (notice the 's').

But sure, '--' is short and handy.

(And a '--file-list' without argument or '--file-list -' that read
standard input could be handy too: i will try to propose a patch for
that ).

*tla changes -- limit

Here it could really be a 'traditionnal' command line option with a
single argument.

* tla archives

"--" stop the whole parsing process.

    115         case opt_double_dash:
    116           {
    117             goto no_more_args;
    118           }
    119         }
    120     }
    121 
    122  no_more_args:


* tla changeset

a "--" in the command line lead to specific error:

     97         case opt_double_dash:
     98         usage_error:
     99           opt_usage (2, argv[0], program_name, usage, 1);
    100           exit (1);

* tla inventory -- [directory]

doesn't work but it's described in help

* Other command don't have special handling of '--'.

This make tla behave differently than other GNU tools .

-- 
Yann Droneaud (aka Meuh) <address@hidden>
http://meuh.org/ | http://sherkan.tuxfamily.net/~meuh/
Une vache perdue sur Internet | A cow lost in the Internet
1024D/BEA43321   5D91 B5B0 5137 B8FE 6882  FE19 CAA0 6F05 BEA4 3321




reply via email to

[Prev in Thread] Current Thread [Next in Thread]