Re: [patch] print some more usage information [was: Re: parser option handling]

Bernhard Fischer <[email protected]> Sat, 5 May 2007 23:24:48 +0200
Newsgroups gmane.comp.documentation.synopsis
Message-ID <[email protected]>
On Sat, May 05, 2007 at 09:16:22PM +0200, Bernhard Fischer wrote:
>The attached patch (ontop of bug139) does:
>
>- adjust the help text to fit into 80 columns
>- print help text if no input-files were given ¹)
>- add -U to the help output
>
>The reasoning is that it would be nice if all of
>$ synopsis
>$ synopsis -v

And to make sure that we print the current context's correct help-text,
stopping on the first -h is in order, too.

Please find this in the incremental patch attached.
thanks,
>
>et al would print a nice help text
>
>¹) -p C -h  still works as expected, even if there were no args given.
>
>Please consider applying

_______________________________________________
Synopsis-devel mailing list
[email protected]
http://lists.fresco.org/cgi-bin/listinfo/synopsis-devel
synopsis-0.9.1-bb.print-help-for-missing-args-break.diff (text/x-diff, 394 B)
Index: synopsis-trunk/scripts/synopsis
===================================================================
--- synopsis-trunk/scripts/synopsis	(revision 1816)
+++ synopsis-trunk/scripts/synopsis	(working copy)
@@ -166,6 +171,7 @@ def make_processor(argv):
 
         elif o in ['-h', '--help']:
             help = True
+	    break
 
     if help:
         for p in parser, linker, formatter: