summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2005-08-16 22:28:37 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2005-08-16 22:28:37 +0000
commit82027a6f33138438ae5a609507ed59d6f5a3b3f7 (patch)
tree03ee4f068e93030eba9cf7bf467f8912af8242e6
parent4f72707db715b77766382d27cab376cb28dac9f9 (diff)
downloadgpsd-82027a6f33138438ae5a609507ed59d6f5a3b3f7.tar.gz
A small bit of googling says that this is the magic
svn propset svn:keywords Id gpsdspewcurses.c
-rw-r--r--contrib/gpsdspewcurses.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/gpsdspewcurses.c b/contrib/gpsdspewcurses.c
index b123e2a2..dd40c2ec 100644
--- a/contrib/gpsdspewcurses.c
+++ b/contrib/gpsdspewcurses.c
@@ -17,7 +17,7 @@
/*
Jeff Francis
jeff@gritch.org
- $Id: gpsdspewcurses.c,v 1.11 2005/08/16 20:32:27 jfrancis Exp $
+ $Id$
Kind of a curses version of xgps for use with gpsd.
*/
@@ -371,10 +371,13 @@ int main(int argc, char *argv[])
char *err_str = NULL;
/* Process the options. Print help if requested. */
- while ((option = getopt(argc, argv, "h")) != -1) {
+ while ((option = getopt(argc, argv, "hv")) != -1) {
switch (option) {
+ case 'v':
+ (void)fprintf(stderr, "SVN ID: $Id$ \n");
+ exit(0);
case 'h': default:
- (void)fprintf(stderr, "Usage: %s [-h] [server[:port:[device]]]\n", argv[0]);
+ (void)fprintf(stderr, "Usage: %s [-h] [-v] [server[:port:[device]]]\n", argv[0]);
exit(1);
}
}