diff options
author | Van de Bugger <van.de.bugger@gmail.com> | 2011-02-16 01:33:21 +0300 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-02-17 08:43:32 +1000 |
commit | ae3a9348d5d42448ea6a73940a2ed5e19090a00d (patch) | |
tree | a17a74537191dd7908717e571e52be46c035eb2f | |
parent | 0b0763e1f444cabfab8a76c73d8d96892c72433e (diff) |
Refactoring the help message.
1. Entire help message is printed at once (not line-by-line).
2. Brackets around argumnets of -I option removed, since argument is mandatory.
3. Added a space after comma in.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | setxkbmap.c | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/setxkbmap.c b/setxkbmap.c index 3d3b7d8..0c43be5 100644 --- a/setxkbmap.c +++ b/setxkbmap.c @@ -235,30 +235,32 @@ addToList(list_t * list, char *newVal) void usage(int argc, char **argv) { - MSG1("Usage: %s [args] [<layout> [<variant> [<option> ... ]]]\n", - argv[0]); - MSG("Where legal args are:\n"); - MSG("-?,-help Print this message\n"); - MSG("-compat <name> Specifies compatibility map component name\n"); - MSG("-config <file> Specifies configuration file to use\n"); - MSG("-device <deviceid> Specifies the device ID to use\n"); - MSG("-display <dpy> Specifies display to use\n"); - MSG("-geometry <name> Specifies geometry component name\n"); - MSG("-I[<dir>] Add <dir> to list of directories to be used\n"); - MSG("-keycodes <name> Specifies keycodes component name\n"); - MSG("-keymap <name> Specifies name of keymap to load\n"); - MSG("-layout <name> Specifies layout used to choose component names\n"); - MSG("-model <name> Specifies model used to choose component names\n"); - MSG("-option <name> Adds an option used to choose component names\n"); - MSG("-print Print a complete xkb_keymap description and exit\n"); - MSG("-query Print the current layout settings and exit\n"); - MSG("-rules <name> Name of rules file to use\n"); - MSG("-symbols <name> Specifies symbols component name\n"); - MSG("-synch Synchronize request w/X server\n"); - MSG("-types <name> Specifies types component name\n"); - MSG("-v[erbose] [<lvl>] Sets verbosity (1..10). Higher values yield\n"); - MSG(" more messages\n"); - MSG("-variant <name> Specifies layout variant used to choose component names\n"); + MSG1( + "Usage: %s [args] [<layout> [<variant> [<option> ... ]]]\n" + "Where legal args are:\n" + "-?, -help Print this message\n" + "-compat <name> Specifies compatibility map component name\n" + "-config <file> Specifies configuration file to use\n" + "-device <deviceid> Specifies the device ID to use\n" + "-display <dpy> Specifies display to use\n" + "-geometry <name> Specifies geometry component name\n" + "-I<dir> Add <dir> to list of directories to be used\n" + "-keycodes <name> Specifies keycodes component name\n" + "-keymap <name> Specifies name of keymap to load\n" + "-layout <name> Specifies layout used to choose component names\n" + "-model <name> Specifies model used to choose component names\n" + "-option <name> Adds an option used to choose component names\n" + "-print Print a complete xkb_keymap description and exit\n" + "-query Print the current layout settings and exit\n" + "-rules <name> Name of rules file to use\n" + "-symbols <name> Specifies symbols component name\n" + "-synch Synchronize request w/X server\n" + "-types <name> Specifies types component name\n" + "-v[erbose] [<lvl>] Sets verbosity (1..10). Higher values yield\n" + " more messages\n" + "-variant <name> Specifies layout variant used to choose component names\n", + argv[0] + ); } void |