[darcs-users] [patch400] Add commandProgramName field to DarcsCommand

Eric Kow kowey at darcs.net
Fri Sep 17 08:10:53 UTC 2010


On Thu, Sep 16, 2010 at 18:11:17 +0000, Joachim Breitner wrote:
>  subusage :: DarcsCommand -> String
>  subusage super =
>      (usageInfo
> - -     ("Usage: darcs "++commandName super++" SUBCOMMAND ... " ++
> +     ("Usage: " ++ commandProgramName super ++ " "++commandName super++" SUBCOMMAND ... " ++

Quick screening question.  Wouldn't it be simpler for subusage
to have access to the result of System.Environment.getProgramName?

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
For a faster response, try +44 (0)1273 64 2905 or
xmpp:kowey at jabber.fr (Jabber or Google Talk only)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20100917/03815783/attachment.pgp>


More information about the darcs-users mailing list