util/stats/stats.py:
Make the default jobfile Test.py in the current directory
add the -J flag to tell it not to use a jobfile
--HG--
extra : convert_revision :
5cf5bb2f32ed9c9701a94eabc9b2a538581acf94
options.graph = False
options.ticks = False
options.printmode = 'G'
+ jobfilename = 'Test.py'
options.jobfile = None
options.all = False
- opts, args = getopts(sys.argv[1:], '-BEFG:ad:g:h:j:pr:s:u:T:')
+ opts, args = getopts(sys.argv[1:], '-BEFG:Jad:g:h:j:pr:s:u:T:')
for o,a in opts:
if o == '-B':
options.binned = True
options.graphdir = a
if o == '-h':
options.host = a
+ if o == '-J':
+ jobfilename = None
if o == '-j':
- options.jobfile = JobFile(a)
+ jobfilename = a
if o == '-p':
options.passwd = getpass.getpass()
if o == '-r':
if o == '-T':
options.ticks = a
- if options.jobfile:
+ if jobfilename:
+ options.jobfile = JobFile(jobfilename)
if not options.host:
options.host = options.jobfile.dbhost
if not options.db: