On Mon, Sep 22, 2008 at 05:17:28AM -0700, Dmitry Kurochkin wrote:
> Hi.
> 
> I was not able to 'darcs replace' --ignore-unrelated-repos with
> --allow-unrelated-repos in tests/issue1039.sh. I tried:
> 
> darcs replace ignore-unrelated-repos allow-unrelated-repos tests/issue1039.sh
> 
> But it changes nothing. How can tokens starting with '-' be replaced?

Hmmm.  For one thing, you'd have to specify the token characters
manually.  You'd have to do something like

darcs replace --token-chars '[a-z\-]' -- --hello-world --goodbye-world foo

The '--' tells getopt that the remaining arguments are not flags.
It's an option that's accepted by various commands (e.g. diff):

$echo hello > foo
$echo goodbye > --bar
$diff foo --bar
diff: unrecognized option `--bar'
diff: Try `diff --help' for more information.
$ diff -- foo --bar
1c1
< hello
---
> goodbye


> Regards,
>   Dmitry
> 
> Mon Sep 22 16:07:27 MSD 2008  Dmitry Kurochkin <[EMAIL PROTECTED]>
>   * Rename --ignore-unrelated-repos to --allow-unrelated-repos.
> 
> Mon Sep 22 16:11:22 MSD 2008  Dmitry Kurochkin <[EMAIL PROTECTED]>
>   * Documentation for --allow-unrelated-repos.

Applied.  Thanks!

David
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to