diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2013-03-23 14:19:55 +0100 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2013-03-23 14:19:55 +0100 |
commit | c1c3b3e33337de8b3b9c786c6848bd35699d54ad (patch) | |
tree | 6d645b0576877e21b0d83d28bbe2d249deb33cc1 /tools | |
parent | 60bdec72ecd6bb236f2f1153398c9996fb95730f (diff) | |
download | graphlcd-base-c1c3b3e33337de8b3b9c786c6848bd35699d54ad.tar.gz graphlcd-base-c1c3b3e33337de8b3b9c786c6848bd35699d54ad.tar.bz2 |
convpic: improvement of help ouput
Diffstat (limited to 'tools')
-rw-r--r-- | tools/convpic/convpic.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tools/convpic/convpic.c b/tools/convpic/convpic.c index 252b6c8..0adba60 100644 --- a/tools/convpic/convpic.c +++ b/tools/convpic/convpic.c @@ -50,15 +50,20 @@ unsigned int delay = 250; void usage(void) { fprintf(stdout, "\n"); fprintf(stdout, "%s v%s\n", prgname, VERSION); - fprintf(stdout, "%s is a tool to convert images to a simple format (*.glcd)\n", prgname); - fprintf(stdout, " that is used by the graphlcd plugin for VDR.\n\n"); + fprintf(stdout, "%s is a tool to convert images to or from a GLCD file.\n\n", prgname); fprintf(stdout, " Usage: %s [-n] -i file[s...] -o outfile \n\n", prgname); - fprintf(stdout, " -n --invert inverts the output (default: none)\n"); - fprintf(stdout, " -i --infile specifies the name of the input file[s]\n"); + fprintf(stdout, " -n --invert inverts the output (default: no)\n"); + fprintf(stdout, " -i --infile specifies the name of the input file(s)\n"); fprintf(stdout, " -o --outfile specifies the name of the output file\n"); - fprintf(stdout, " -d --delay specifies the delay between multiple images [Default: %d ms] \n",delay); + fprintf(stdout, " -d --delay specifies the delay (in ms) between multiple images (default: %d)\n",delay); fprintf(stdout, "\n" ); - fprintf(stdout, " example: %s -i vdr-logo.bmp -o vdr-logo.glcd \n", prgname ); + fprintf(stdout, " examples:\n"); + fprintf(stdout, " # convert an input image to a single frame GLCD\n"); + fprintf(stdout, " %s -i vdr-logo.bmp -o vdr-logo.glcd\n", prgname ); + fprintf(stdout, " # convert multiple input images to an animated GLCD (delay: 500 ms between two frames)\n"); + fprintf(stdout, " %s -d 500 -i vdr-logo-??.bmp -o vdr-logo.glcd\n", prgname ); + fprintf(stdout, " # convert a GLCD file to PBM file(s)\n"); + fprintf(stdout, " %s -i vdr-logo.glcd -o vdr-logo.pbm\n", prgname ); } |