From 2af2bc36c9de1a7d9e8960726e1573f582195f39 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 13 Feb 2010 19:58:43 +0100 Subject: [PATCH] Document the new options --- man/i3.man | 20 ++++++++++++++++---- src/mainx.c | 3 ++- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/man/i3.man b/man/i3.man index 0b114da3..92b951ff 100644 --- a/man/i3.man +++ b/man/i3.man @@ -9,16 +9,28 @@ i3 - an improved dynamic, tiling window manager == SYNOPSIS -i3 [-c configfile] [-a] +i3 [-a] [-c configfile] [-C] [-d ] [-v] [-V] == OPTIONS --c:: -Specifies an alternate configuration file path - -a:: Disables autostart. +-c:: +Specifies an alternate configuration file path. + +-C:: +Check the configuration file for validity and exit. + +-d:: +Specifies the debug loglevel. To see the most output, use -d all. + +-v:: +Display version number (and date of the last commit). + +-V:: +Be verbose. + == DESCRIPTION === INTRODUCTION diff --git a/src/mainx.c b/src/mainx.c index 6dd72a17..f79beae2 100644 --- a/src/mainx.c +++ b/src/mainx.c @@ -198,13 +198,14 @@ int main(int argc, char *argv[], char *env[]) { /* DEPRECATED, ignored for the next 3 versions (3.e, 3.f, 3.g) */ break; default: - fprintf(stderr, "Usage: %s [-c configfile] [-d loglevel] [-a] [-v] [-V]\n", argv[0]); + fprintf(stderr, "Usage: %s [-c configfile] [-d loglevel] [-a] [-v] [-V] [-C]\n", argv[0]); fprintf(stderr, "\n"); fprintf(stderr, "-a: disable autostart\n"); fprintf(stderr, "-v: display version and exit\n"); fprintf(stderr, "-V: enable verbose mode\n"); fprintf(stderr, "-d : enable debug loglevel \n"); fprintf(stderr, "-c : use the provided configfile instead\n"); + fprintf(stderr, "-C: check configuration file and exit\n"); exit(EXIT_FAILURE); } } -- 2.39.5