]> www.infradead.org Git - mtd-utils.git/commit
nand{dump, test, write}: clean up --help handling
authorMike Frysinger <vapier@gentoo.org>
Wed, 8 May 2013 23:02:03 +0000 (19:02 -0400)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 1 Jul 2013 06:00:32 +0000 (09:00 +0300)
commitf6b476ee29833e13c0285d49ebb75666176b2aa7
tree494def6d89b38b79a975479a770c6a2eda30eb9b
parent450e9cb17d3d86e3e45fd427c85644ac64ec60a4
nand{dump, test, write}: clean up --help handling

We should send the output to stdout when the user passes -h/--help
and then exit(0), but otherwise the output should go to stderr and
then exit(1).

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
nanddump.c
nandtest.c
nandwrite.c