From d6c3787acf186f58e3fda571e77f73bea7324f40 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 17 Jun 2007 05:51:15 +0000 Subject: better usage output by Volker Gering git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@804 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- lcd4linux.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/lcd4linux.c b/lcd4linux.c index eee332b..148605f 100644 --- a/lcd4linux.c +++ b/lcd4linux.c @@ -69,10 +69,26 @@ static void usage(void) { printf("%s\n", release); printf("%s\n", copyright); - printf("usage: lcd4linux [-h]\n"); - printf(" lcd4linux [-l]\n"); - printf(" lcd4linux [-c key=value] [-i] [-f config-file] [-v] [-p pid-file]\n"); - printf(" lcd4linux [-c key=value] [-F] [-f config-file] [-o output-file] [-q] [-v]\n"); + printf("\n"); + printf("usage:\n"); + printf(" lcd4linux [-h]\n"); + printf(" lcd4linux [-l]\n"); + printf(" lcd4linux [-c key=value] [-i] [-f config-file] [-v] [-p pid-file]\n"); + printf(" lcd4linux [-c key=value] [-F] [-f config-file] [-o output-file] [-q] [-v]\n"); + printf("\n"); + printf("options:\n"); + printf(" -h help\n"); + printf(" -l list available display drivers\n"); + printf(" -c = overwrite entries from the config-file\n"); + printf(" -i enter interactive mode (after display initialisation)\n"); + printf(" -ii enter interactive mode (before display initialisation)\n"); + printf(" -f use configuration from instead of /etc/lcd4linux.conf\n"); + printf(" -v generate info messages\n"); + printf(" -vv generate debugging messages\n"); + printf(" -p specify a different pid-file location (default is /var/run/lcd4linux.pid)\n"); + printf(" -F do not fork and detach (run in foreground)\n"); + printf(" -o write picture to file (raster driver only)\n"); + printf(" -q suppress startup and exit splash screen\n"); } static void interactive_mode(void) -- cgit v1.2.3