Sun Dec 4 01:12:07 CET 2005 [EMAIL PROTECTED]
* Make --help and --list-commands ignore other options
Proposed implementation of issue34 on the wishlist.
If --help is one of the options you provide, then darcs prints
the help and does nothing else, no matter what order you put
the options in. Similar behaviour for --list-commands.
New patches:
[Make --help and --list-commands ignore other options
[EMAIL PROTECTED]
Proposed implementation of issue34 on the wishlist.
If --help is one of the options you provide, then darcs prints
the help and does nothing else, no matter what order you put
the options in. Similar behaviour for --list-commands.
] {
hunk ./DarcsCommands.lhs 260
- (opts,extra,[]) ->
- case opts of
- [Help] -> putStr $ get_command_help msuper cmd
- (ListOptions:_) -> do
+ (opts,extra,[])
+ | Help `elem` opts -> putStr $ get_command_help msuper cmd
+ | ListOptions `elem` opts -> do
hunk ./DarcsCommands.lhs 272
- _ -> do
+ | otherwise -> do
hunk ./DarcsCommands.lhs 384
- (opts,_,[]) ->
- case opts of
- [Help] -> putStr $ subusage super cs
- (ListOptions:_) -> do putStrLn "--help"
- mapM_ (putStrLn . command_name)
- (extract_commands cs)
- _ -> if Disable `elem` opts
+ (opts,_,[])
+ | ListOptions `elem` opts -> do
+ putStrLn "--help"
+ mapM_ (putStrLn . command_name) (extract_commands cs)
+ | otherwise ->
+ if Disable `elem` opts
}
Context:
[Make send --ouput - to print to stdout
Esa Ilari Vuokko <[EMAIL PROTECTED]>**20051129201708]
[Support apply --verify for bundles signed by GnuPG in Windows
Esa Ilari Vuokko <[EMAIL PROTECTED]>**20051126223238]
[TAG 1.0.5rc1
Tommy Pettersson <[EMAIL PROTECTED]>**20051125191739]
Patch bundle hash:
e163dde9cc2a9bfaa7640ccb22af535f5d3d2c92
_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel