[darcs-devel] [patch807] Add new 'usageInfo' implementation (Darcs.Usage); empl...

Marc Simpson bugs at darcs.net
Sun Apr 22 09:57:04 UTC 2012


New submission from Marc Simpson <marc at 0branch.com>:

Summary
-------

This module provides a variant of 'System.Console.GetOpt.usageInfo' in the
module 'Darcs.Usage'.

The new 'usageInfo' definition is employed in 'Darcs.Commands' to break long
switches across multiple lines, economising on columns.

Before applying this patch, help output resembles the following,

$ darcs pull -h
[...]
         --dont-allow-conflicts, --no-allow-conflicts           fail if...

With the patch, these switches are presented on separate lines,

$ darcs pull -h
[...]
         --dont-allow-conflicts,
         --no-allow-conflicts            fail if...

Future improvements might include wrapping switch descriptions when they
overflow the right margin (e.g., at 80 characters).

Patch
-----

1 patch for repository http://darcs.net/screened:

Sat Apr 21 18:39:24 BST 2012  Marc Simpson <marc at 0branch.com>
  * Add new 'usageInfo' implementation (Darcs.Usage); employ in Darcs.Command.

----------
files: add-new-_usageinfo_-implementation-_darcs_usage__-employ-in-darcs_command_.dpatch, patch-preview.txt, unnamed
messages: 15595
nosy: marc
status: needs-screening
title: Add new 'usageInfo' implementation (Darcs.Usage); empl...

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch807>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-preview.txt
Type: text/x-darcs-patch
Size: 3803 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20120422/1e7479aa/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-new-_usageinfo_-implementation-_darcs_usage__-employ-in-darcs_command_.dpatch
Type: application/x-darcs-patch
Size: 148483 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20120422/1e7479aa/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unnamed
Type: application/octet-stream
Size: 5 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20120422/1e7479aa/attachment-0001.obj>


More information about the darcs-devel mailing list