There wasn't any objection on-list to this solution to bug #477 (a bad
error message), so here's a patch that makes darcs accept command-line
flags in any order (except before the command name itself).  In particular,
you can now run

darcs record foo --no-test

and it means the same thing as

darcs record --no-test foo

and other reorderings of the same sort.  I think this is a pretty safe fix.

David.

Sat Aug  6 17:18:28 EDT 2005  David Roundy <[EMAIL PROTECTED]>
  * accept command-line flags in any order.
  In particular, we no longer require that --flags precede filename and
  repository arguments.

Sat Aug  6 17:21:48 EDT 2005  David Roundy <[EMAIL PROTECTED]>
  * add changelog entry for bug #477.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


New patches:

[accept command-line flags in any order.
David Roundy <[EMAIL PROTECTED]>**20050806211828
 In particular, we no longer require that --flags precede filename and
 repository arguments.
] 
<
> {
hunk ./DarcsCommands.lhs 250
     | "-all" `elem` args = -- -all indicates --all --look-for-adds!
         fail $ "Are you sure you didn't mean -" ++ "-all rather than -all?"
 run_command msuper cmd args =
- -    case getOpt RequireOrder
+    case getOpt Permute
              (option_from_darcsoption list_options++options) args of
     (opts,extra,[]) ->
       case opts of
}
[add changelog entry for bug #477.
David Roundy <[EMAIL PROTECTED]>**20050806212148] 
<
> {
addfile ./changelog.in/entries/rt477
hunk ./changelog.in/entries/rt477 1
+match: name "accept command-line flags in any order"
+
+> Make darcs accept command line flags in any order, rather than requiring
+> that they precede file, directory or repository arguments.  Fixes bug
+> #477 (David Roundy)
}

Context:

[fix obsolete error explanation in get_extra bug.
David Roundy <[EMAIL PROTECTED]>**20050804130610] 
[simplify fix for bug 463; reuse /// from FilePathUtils
Matt Lavin <[EMAIL PROTECTED]>**20050804021130] 
[Make curl exit with error on failed downloads
[EMAIL PROTECTED] 
[Bump up AC_PREREQ version to 2.59.
[EMAIL PROTECTED] 
[fix for bug 463 (with new test)
Matt Lavin <[EMAIL PROTECTED]>**20050802002116] 
[bump version number, since I just made a release.
David Roundy <[EMAIL PROTECTED]>**20050731190756] 
[Use simpler curl_version() function to get version string.
Kannan Goundan <[EMAIL PROTECTED]>**20050322221027] 
[fix documentation on --reorder-patches.
David Roundy <[EMAIL PROTECTED]>**20050731185406] 
[add changelog entry for bug #224.
David Roundy <[EMAIL PROTECTED]>**20050731133942] 
[fix bug when editing long comment leaves empty file.
David Roundy <[EMAIL PROTECTED]>**20050731133612] 
[TAG 1.0.4pre2
David Roundy <[EMAIL PROTECTED]>**20050731121029] 
Patch bundle hash:
08c65a43fdcd0cbfc79e9bc8585973cfc139cfc3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC9SoYQ6uZI9PVvOwRAlakAKDyUEvDXnMQp0nwA0wPanx1GtS38ACeIbRT
dYzYzobw6BCvtCLV4sJrsiE=
=i0+X
-----END PGP SIGNATURE-----
_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel

Reply via email to