diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2005-08-16 22:16:44 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2005-08-16 22:16:44 +0000 |
commit | 4f72707db715b77766382d27cab376cb28dac9f9 (patch) | |
tree | fd75651f8879a10d1b27aff804bf3aef9ccca0ac /contrib | |
parent | 02dfd5956eaca5ced6cb5b3ece06f263f5d158f2 (diff) | |
download | gpsd-4f72707db715b77766382d27cab376cb28dac9f9.tar.gz |
Until I figure out how to embed an SVN token containing the version of a file...
...nuke code that will tell lies. Also, allow argv[0] to be printed in
the usage statement, rather than "thing".
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gpsdspewcurses.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/contrib/gpsdspewcurses.c b/contrib/gpsdspewcurses.c index 8fac8001..b123e2a2 100644 --- a/contrib/gpsdspewcurses.c +++ b/contrib/gpsdspewcurses.c @@ -370,14 +370,11 @@ int main(int argc, char *argv[]) char *arg = NULL, *colon1, *colon2, *device = NULL, *server = NULL, *port = DEFAULT_GPSD_PORT; char *err_str = NULL; - /* Process the options. Print help or version, if requested. */ - while ((option = getopt(argc, argv, "hv")) != -1) { + /* Process the options. Print help if requested. */ + while ((option = getopt(argc, argv, "h")) != -1) { switch (option) { - case 'v': - (void)printf("thing $Id: gpsdspewcurses.c,v 1.11 2005/08/16 20:32:27 jfrancis Exp $\n"); - exit(0); case 'h': default: - (void)fputs("usage: thing [-hv] [server[:port:[device]]]\n", stderr); + (void)fprintf(stderr, "Usage: %s [-h] [server[:port:[device]]]\n", argv[0]); exit(1); } } |