[darcs-devel] [issue1471] Cope with darcs --repo foo whatsnew

Trent Buck bugs at darcs.net
Wed May 27 03:09:52 UTC 2009


New submission from Trent Buck <trentbuck at gmail.com>:

Currently you can say

    darcs <command> <option>

but you can't say

    darcs <option> <command>

I believe this could be fixed in the code by "moving" the first
non-hyphenated argument to the front of the list of arguments.

This is particularly annoying when you want to run several different
commands with the same option.  The most common case for me is when I
want to keep --repo the same.  For example,

    $ darcs --repo foo w
    # I type previous-input, backwards-word, kill-word, then "rec".
    $ darcs --repo foo rec

Instead I have to type

    $ darcs w --repo foo
    # I type previous-input, beginning-of-line, forward-word, kill-word, then "rec"

Though usually I don't think of that, and instead type backwards-word
several times to get "past" the static argument, to the command.

----------
messages: 7846
nosy: dmitry.kurochkin, kowey, simon, thorkilnaur, twb
status: unread
title: Cope with darcs --repo foo whatsnew

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1471>
__________________________________


More information about the darcs-devel mailing list