Improving the help when run without parameters.
authorviric <viriketo@gmail.com>
Wed, 21 Dec 2011 21:41:32 +0100
changeset 17 021968512187
parent 16 62f8cead15df
child 18 f85465640dd4
Improving the help when run without parameters.
pce.c
--- a/pce.c	Mon Jan 10 19:13:26 2011 +0100
+++ b/pce.c	Wed Dec 21 21:41:32 2011 +0100
@@ -1,6 +1,6 @@
 /*
     PCE-HT71 programmer and data downloader for libusb
-    Copyright (C) 2010  Lluís Batlle i Rossell
+    Copyright (C) 2010-2011  Lluís Batlle i Rossell
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -249,12 +249,18 @@
 void
 usage()
 {
-    fprintf(stderr, "pce v0.2 - PCE-HT71 programmer and data downloader\n");
-    fprintf(stderr, "Copyright (C) 2010  Lluis Batlle i Rossell\n");
+    fprintf(stderr, "pce v0.3 - PCE-HT71 programmer and data downloader\n");
+    fprintf(stderr, "usage: pce [-n maxsamples] [-t timepersample] [-i] <-d downloadfile | -s>\n");
+    fprintf(stderr, "Options:\n");
+    fprintf(stderr, "  -i       Start measuring now, instead of waiting the manual button.\n");
+    fprintf(stderr, "  -s       Program the capture according to '-n' and '-t'\n");
+    fprintf(stderr, "  -d file  Download the data captured until now and stop it\n");
+    fprintf(stderr, "  -n maxs  Set the maximum number of samples to capture (default 16000)\n");
+    fprintf(stderr, "  -t time  Set the number of seconds between samples (default 2)\n");
+    fprintf(stderr, "\nCopyright (C) 2010-2011  Lluis Batlle i Rossell\n");
     fprintf(stderr, "This program comes with ABSOLUTELY NO WARRANTY.\n");
     fprintf(stderr, "This is free software, and you are welcome to redistribute it\n");
-    fprintf(stderr, "under certain conditions; type `show c' for details.\n");
-    fprintf(stderr, "\nusage: pce [-n maxsamples] [-t timepersample] [-i] <-d downloadfile | -s>\n");
+    fprintf(stderr, "under certain conditions; read the COPYING file for details.");
 }
 
 int main(int argc, char **argv)