On 06/22/2017 04:37 AM, Ruediger Meier wrote:
From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> This is pull request #467 on github https://github.com/karelzak/util-linux/pull/467
The major goal is to avoid printing usage/help messages on stderr. This is the preparing first part of a bigger patch-set. There are some minor bug fixes and finally we add --help options to all our commands (just 5 commands were missing it). The next completing patch-set (part 2) will be more invasive but even more trivial.
Thanks for merging. FYI I've PR'ed the second part on github only because it's almost trivial but invasive. https://github.com/karelzak/util-linux/pull/471
Ruediger Meier (13): uuidd: remove unused define misc: remove superfluous null pointer checks for optarg misc: fix some broken exit codes blkid: use errtryhelp instead of errtryh dmesg: do not accept any non-option arguments setarch: print usage error if no argument given setarch: use errtryhelp() fsck: add --help and --version login: add --help and --version whereis: add --help and --version more: add --help and --version mkfs.cramfs: add --help and --version misc: no more errtryh() disk-utils/fsck.8 | 6 ++++++ disk-utils/fsck.c | 29 +++++++++++++++++++++-------- disk-utils/fsck.cramfs.c | 2 +- disk-utils/mkfs.cramfs.8 | 8 ++++---- disk-utils/mkfs.cramfs.c | 35 ++++++++++++++++++++++++----------- include/c.h | 6 ------ login-utils/chsh.c | 2 -- login-utils/login.1 | 5 ++++- login-utils/login.c | 28 ++++++++++++++++++++++------ login-utils/lslogins.c | 15 ++++++--------- misc-utils/blkid.c | 8 ++++---- misc-utils/findfs.c | 4 ++-- misc-utils/test_uuidd.c | 25 ++++++++++++++----------- misc-utils/uuidd.c | 6 ------ misc-utils/whereis.1 | 6 ++++++ misc-utils/whereis.c | 48 +++++++++++++++++++++++++++++++++++------------- sys-utils/dmesg.c | 4 +--- sys-utils/setarch.c | 22 ++++++---------------- text-utils/hexdump.c | 2 +- text-utils/more.1 | 6 ++++++ text-utils/more.c | 29 ++++++++++++++++++++++------- 21 files changed, 185 insertions(+), 111 deletions(-)
-- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html