public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* add one-line descriptions to each program usage()
@ 2014-08-06 13:27 Karel Zak
  2014-08-06 16:04 ` Benno Schulenberg
  0 siblings, 1 reply; 4+ messages in thread
From: Karel Zak @ 2014-08-06 13:27 UTC (permalink / raw)
  To: util-linux; +Cc: Sami Kerola, Benno Schulenberg


See commit:

https://github.com/stevenhoneyman/util-linux/commit/d5b828e418102b354025bbf7f91b2dcdfc1f4e66

the idea is to add one-line descriptions to each program usage().

Comments?

 IMHO it's not so bad idea, the description will be translated, and
 --help output more informative. Note that for example coreutils use it
 too.

 Anyway, the patch is not ready. I don't like the command name in the
 description -- it's redundant.

 Maybe it would be better to move the description above Options
 section. Something like

---
 Usage:
   fdisk [options] <disk>      change partition table
   fdisk [options] -l [<disk>] list partition table(s)

 Manipulate and list disk partition table.       <---!

 Options:
    -b, --sector-size <size>      physical and logical sector size
    ...
---

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-01 19:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-06 13:27 add one-line descriptions to each program usage() Karel Zak
2014-08-06 16:04 ` Benno Schulenberg
2014-10-01  8:06   ` Karel Zak
2014-10-01 19:48     ` Benno Schulenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox