From b6a62e47ea912f3ef5e8f7f1d0d1b52c725a6f0e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 4 Feb 2008 14:48:44 +0100 Subject: [PATCH] add --check and --config, better usage printing --- awesome.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/awesome.c b/awesome.c index 6f3519a1..cdbad74c 100644 --- a/awesome.c +++ b/awesome.c @@ -194,7 +194,12 @@ static void __attribute__ ((noreturn)) exit_help(int exit_code) { FILE *outfile = (exit_code == EXIT_SUCCESS) ? stdout : stderr; - fprintf(outfile, "Usage: awesome [ -v | -h | -c configfile | -k ]\n"); + fprintf(outfile, +"Usage: awesome [OPTION]\n\ + -h, --help show help\n\ + -v, --version show version\n\ + -c, --config FILE configuration file to use\n\ + -k, --check check configuration file syntax\n"); exit(exit_code); } @@ -224,6 +229,8 @@ main(int argc, char *argv[]) { {"help", 0, NULL, 'h'}, {"version", 0, NULL, 'v'}, + {"check", 0, NULL, 'k'}, + {"config", 0, NULL, 'c'}, {NULL, 0, NULL, 0} }; -- 2.11.4.GIT