pacman: pacman-conf: removed hputs macro for usage display

Using the macro got in the way of _() macro for translation
All the macro did was make it so the writer didn't have to type
\n", stream); at the end of every line.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Matthew Sexton 2019-09-08 22:52:57 -04:00 committed by Allan McRae
parent b4e4b74ace
commit a6ae5f0a04

View file

@ -37,19 +37,17 @@ static void cleanup(void)
static void usage(int ret) static void usage(int ret)
{ {
FILE *stream = (ret ? stderr : stdout); FILE *stream = (ret ? stderr : stdout);
#define hputs(x) fputs(x"\n", stream) fputs("pacman-conf - query pacman's configuration file\n", stream);
hputs("pacman-conf - query pacman's configuration file"); fputs("usage: pacman-conf [options] [<directive>...]\n", stream);
hputs("usage: pacman-conf [options] [<directive>...]"); fputs(" pacman-conf (--repo-list|--help|--version)\n", stream);
hputs(" pacman-conf (--repo-list|--help|--version)"); fputs("options:\n", stream);
hputs("options:"); fputs(" -c, --config=<path> set an alternate configuration file\n", stream);
hputs(" -c, --config=<path> set an alternate configuration file"); fputs(" -R, --rootdir=<path> set an alternate installation root\n", stream);
hputs(" -R, --rootdir=<path> set an alternate installation root"); fputs(" -r, --repo=<remote> query options for a specific repo\n", stream);
hputs(" -r, --repo=<remote> query options for a specific repo"); fputs(" -v, --verbose always show directive names\n", stream);
hputs(" -v, --verbose always show directive names"); fputs(" -l, --repo-list list configured repositories\n", stream);
hputs(" -l, --repo-list list configured repositories"); fputs(" -h, --help display this help information\n", stream);
hputs(" -h, --help display this help information"); fputs(" -V, --version display version information\n", stream);
hputs(" -V, --version display version information");
#undef hputs
cleanup(); cleanup();
exit(ret); exit(ret);
} }