diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2007-12-27 18:53:52 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2007-12-27 18:53:52 +0000 |
commit | 688cf2d236a321941a634369d8f5d39bea8c9a92 (patch) | |
tree | cd750ded9bcd843a4cc67f3bb2b274e7f2bd2436 /gpsd.c | |
parent | ddd7edadf0689c6600393f67d62b576aab25c34b (diff) | |
download | gpsd-688cf2d236a321941a634369d8f5d39bea8c9a92.tar.gz |
Make the -h output include a list of compiled-in drivers.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -196,6 +196,8 @@ void gpsd_report(int errlevel, const char *fmt, ... ) static void usage(void) { + struct gps_type_t **dp; + (void)printf("usage: gpsd [-b] [-n] [-N] [-D n] [-F sockfile] [-P pidfile] [-S port] [-h] device...\n\ Options include: \n\ -b = bluetooth-safe: open data sources read-only\n\ @@ -209,9 +211,13 @@ static void usage(void) -V = emit version and exit.\n\ A device may be a local serial device for GPS input, or a URL of the form:\n\ [{dgpsip|ntrip}://][user:passwd@]host[:port][/stream]\n\ -in which case it specifies an input source for DGPS or ntrip data.\n", - +in which case it specifies an input source for DGPS or ntrip data.\n\ +\n\ +The following driver types are compiled into this gpsd instance:\n", DEFAULT_GPSD_PORT); + for (dp = gpsd_drivers; *dp; dp++) { + (void)printf(" %s\n", (*dp)->typename); + } } static int passivesock(char *service, char *protocol, int qlen) |