summaryrefslogtreecommitdiff
path: root/cgpxlogger.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2006-03-13 00:55:08 +0000
committerGary E. Miller <gem@rellim.com>2006-03-13 00:55:08 +0000
commit5af015ec2bcfb4796c77700e90d8059370fbbaac (patch)
tree617658e9e3d6e96e9017ba4bb0707fd1c0aafc15 /cgpxlogger.c
parentb04bc7b4f505fbe3012d8ae3313b59d851095ab7 (diff)
downloadgpsd-5af015ec2bcfb4796c77700e90d8059370fbbaac.tar.gz
Change -v to -V for Verbose option
Diffstat (limited to 'cgpxlogger.c')
-rw-r--r--cgpxlogger.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cgpxlogger.c b/cgpxlogger.c
index c2ab0617..cded8ee4 100644
--- a/cgpxlogger.c
+++ b/cgpxlogger.c
@@ -82,7 +82,7 @@ main(int argc, char **argv){
fd_set fds;
progname = argv[0];
- while ((ch = getopt(argc, argv, "hi:s:p:")) != -1){
+ while ((ch = getopt(argc, argv, "hVi:s:p:")) != -1){
switch (ch) {
case 'i':
sl = (unsigned int)atoi(optarg);
@@ -97,6 +97,9 @@ main(int argc, char **argv){
case 'p':
port = (unsigned short)atoi(optarg);
break;
+ case 'V':
+ (void)fprintf(stderr, "SVN ID: $Id: cgpxlogger.c$ \n");
+ exit(0);
default:
usage();
/* NOTREACHED */