summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2010-04-21 09:48:54 -0700
committerGary E. Miller <gem@rellim.com>2010-04-21 09:48:54 -0700
commit85d7235fe3f9e26e18ca7cbf99347ad5c88f4d70 (patch)
treefe232307f5f5c80287f7d82566afc65f13da87ba /gpsprof
parentccdf4e5641f8847cd49ead381e21b3d28cd0bcc2 (diff)
downloadgpsd-85d7235fe3f9e26e18ca7cbf99347ad5c88f4d70.tar.gz
Document gpsprof -v, allow > 1 level of verbosity with -vv and -vvvv.
Probably should use the -D X syntax but my Python is not that good.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpsprof b/gpsprof
index d35732fa..2f7738d0 100755
--- a/gpsprof
+++ b/gpsprof
@@ -458,7 +458,7 @@ if __name__ == '__main__':
title = time.ctime()
threshold = 0
await = 100
- verbose = False
+ verbose = 0
for (switch, val) in options:
if (switch == '-f'):
formatter = val
@@ -471,10 +471,10 @@ if __name__ == '__main__':
elif (switch == '-t'):
title = val
elif (switch == '-v'):
- verbose = True
+ verbose += 1
elif (switch == '-h'):
sys.stderr.write(\
- "usage: gpsprof [-h] [-m threshold] [-n samplecount] \n"
+ "usage: gpsprof [ [-v[v] -h] [-m threshold] [-n samplecount] \n"
+ "\t[-f {" + "|".join(map(lambda x: x.name, formatters)) + "}] [-s speed] [-t title]\n")
sys.exit(0)
sys.stdout.write(plotframe(await,formatter,speed,threshold,title))