bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Command line parsing of ls with genparse


From: Eric Blake
Subject: Re: [PATCH] Command line parsing of ls with genparse
Date: Tue, 28 Aug 2007 21:08:51 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

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

According to Michael Geng on 8/28/2007 12:33 PM:
> 
> In the present version of genparse new strings are always printed
> in new lines. For example (also from the ls commmand):
> 
> d / directory                 flag    "list directory entries instead of 
> contents,"
>                                       "  and do not dereference symbolic 
> links"

Why not make genparse a bit smarter, and let the user supply free-form
text as the option description.  Genparse should then wrap it to fit an
80-column screen before generating the resulting usage() in the .c file.
Then the above example would simply be:

d / directory   flag \
"list directory entries instead of contents, and do not dereference
symbolic links"

with the __GNU_GLOSSARY__(29) being the formatting hint of where the
auto-wrapping should occur in the output English text.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG1OM/84KuGfSFAYARAt2kAKCwODGWB8MgUxtnltO0O9HFdUCThwCdGEGH
3IWLqYyRObHty4aDcxJX4oo=
=y+0l
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]