summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gpspipe.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gpspipe.c b/gpspipe.c
index 19ed678e..5217d2ca 100644
--- a/gpspipe.c
+++ b/gpspipe.c
@@ -100,6 +100,7 @@ static void usage(void)
"-R Dump super-raw mode (GPS binary).\n"
"-w Dump gpsd native data.\n"
"-S Set scaled flag.\n"
+ "-2 Set the split24 flag.\n"
"-l Sleep for ten seconds before connecting to gpsd.\n"
"-t Time stamp the data.\n"
"-T [format] set the timestamp format (strftime(3)-like; implies '-t')\n"
@@ -141,7 +142,7 @@ int main(int argc, char **argv)
/*@-branchstate@*/
flags = WATCH_ENABLE;
- while ((option = getopt(argc, argv, "?dD:lhrRwStT:vVn:s:o:pu")) != -1) {
+ while ((option = getopt(argc, argv, "?dD:lhrRwStT:vVn:s:o:pu2")) != -1) {
switch (option) {
case 'D':
debug = atoi(optarg);
@@ -204,6 +205,9 @@ int main(int argc, char **argv)
case 'o':
outfile = optarg;
break;
+ case '2':
+ flags |= WATCH_SPLIT24;
+ break;
case '?':
case 'h':
default: