diff options
author | Robert Norris <rw_norris@hotmail.com> | 2017-03-08 00:24:29 +0000 |
---|---|---|
committer | Fred Wright <fw@fwright.net> | 2017-03-17 15:44:59 -0700 |
commit | 468ec7704ccfcf56559bb2388dcc88a9e819e411 (patch) | |
tree | d1da982e795857b6e4cc8d221aba20a0f3807572 /gpsfake | |
parent | d94431a34bfa2a596db96bed6b7e67cc9522e091 (diff) | |
download | gpsd-468ec7704ccfcf56559bb2388dcc88a9e819e411.tar.gz |
Enable gpsfake to list all options
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'
Signed-off-by: Fred Wright <fw@fwright.net>
Diffstat (limited to 'gpsfake')
-rwxr-xr-x | gpsfake | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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: |