diff options
author | Gary E. Miller <gem@rellim.com> | 2010-04-21 09:48:54 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2010-04-21 09:48:54 -0700 |
commit | 85d7235fe3f9e26e18ca7cbf99347ad5c88f4d70 (patch) | |
tree | fe232307f5f5c80287f7d82566afc65f13da87ba | |
parent | ccdf4e5641f8847cd49ead381e21b3d28cd0bcc2 (diff) | |
download | gpsd-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.
-rwxr-xr-x | gpsprof | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)) |