summaryrefslogtreecommitdiff
path: root/xgpsspeed
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-09-21 14:52:08 -0700
committerGary E. Miller <gem@rellim.com>2018-09-21 14:52:08 -0700
commit7e83f27199bbcdf802ea9064601aa79829b52240 (patch)
treee41366ffcb4a6f0add5cfdbfb7d70c8014b47476 /xgpsspeed
parent71e5e40df65f82c204d094f2b6e860e4eb53ba9f (diff)
downloadgpsd-7e83f27199bbcdf802ea9064601aa79829b52240.tar.gz
xgpsspeed: sort options.
Diffstat (limited to 'xgpsspeed')
-rwxr-xr-xxgpsspeed56
1 files changed, 28 insertions, 28 deletions
diff --git a/xgpsspeed b/xgpsspeed
index f4e82425..57756eaa 100755
--- a/xgpsspeed
+++ b/xgpsspeed
@@ -718,16 +718,12 @@ if __name__ == '__main__':
parser = OptionParser(usage=usage, epilog=epilog)
parser.add_option(
- '--host',
- dest='host',
- default=None,
- help='The host to connect. [Default localhost]'
- )
- parser.add_option(
- '--port',
- dest='port',
- default=None,
- help='The port to connect. [Default %s]' % gps.GPSD_PORT
+ '--debug',
+ dest='debug',
+ default=0,
+ action='store',
+ type='int',
+ help='Set level of debug. Must be integer. [Default 0]'
)
parser.add_option(
'--device',
@@ -736,11 +732,17 @@ if __name__ == '__main__':
help='The device to connect. [Default None]'
)
parser.add_option(
- '--speedunits',
- dest='speedunits',
- default='mph',
- help='The unit of speed. Possible units are: mph, kmh, knots. '
- '[Default mph]'
+ '--host',
+ dest='host',
+ default=None,
+ help='The host to connect. [Default localhost]'
+ )
+ parser.add_option(
+ '--landspeed',
+ dest='nautical',
+ default=True,
+ action='store_false',
+ help='Enable dashboard-style speedometer.'
)
parser.add_option(
'--maxspeed',
@@ -756,19 +758,10 @@ if __name__ == '__main__':
help='Enable nautical-style speed and track display.'
)
parser.add_option(
- '--landspeed',
- dest='nautical',
- default=True,
- action='store_false',
- help='Enable dashboard-style speedometer.'
- )
- parser.add_option(
- '--debug',
- dest='debug',
- default=0,
- action='store',
- type='int',
- help='Set level of debug. Must be integer. [Default 0]'
+ '--port',
+ dest='port',
+ default=None,
+ help='The port to connect. [Default %s]' % gps.GPSD_PORT
)
parser.add_option(
'--rotate',
@@ -778,6 +771,13 @@ if __name__ == '__main__':
type='float',
help='Rotation of skyview ("up" direction) in degrees. [Default 0]'
)
+ parser.add_option(
+ '--speedunits',
+ dest='speedunits',
+ default='mph',
+ help='The unit of speed. Possible units are: mph, kmh, knots. '
+ '[Default mph]'
+ )
(options, args) = parser.parse_args()
if args:
arg = args[0].split(':')