[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH 3/5] Enable gpsfake to list all options
From: |
Robert Norris |
Subject: |
[gpsd-dev] [PATCH 3/5] Enable gpsfake to list all options |
Date: |
Wed, 8 Mar 2017 00:24:29 +0000 |
Output a succinct list of all options available for gpsfake.
This includes fixing the incorrect double hyphen for the debug level.
Note that gpsfake can handle multiple log files.
TESTED:
The list is displayed on 'gpsfake -h'
---
gpsfake | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gpsfake b/gpsfake
index f9450359..396893eb 100755
--- a/gpsfake
+++ b/gpsfake
@@ -173,7 +173,9 @@ if __name__ == '__main__':
elif switch == '-v':
verbose += 1
elif switch == '-h':
- sys.stderr.write("usage: gpsfake [-h] [-l] [-m monitor] [--D
debug] [-o options] [-p] [-s speed] [-S] [-c cycle] [-b] logfile\n")
+ sys.stderr.write("usage: gpsfake"
+ " [-1] [-h] [-i] [-l] [-g] [-m monitor] [-D debug] [-n]
[-o options] [-p]\n"
+ "\t[-P port] [-r initcmd] [-t] [-T] [-v] [-x] [-s speed]
[-S] [-c cycle] [-b] logfile...\n")
raise SystemExit(0)
try:
--
2.11.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gpsd-dev] [PATCH 3/5] Enable gpsfake to list all options,
Robert Norris <=