Lines Matching defs:args
37 <command> [command args]
57 opts, args = getopt.getopt(list, flags)
61 return opts, args
66 def commands(options, command, args):
68 if len(args) == 0: raise CommandException
73 if args[0] == 'drop':
74 if len(args) > 2: raise CommandException
77 if len(args) == 2 and args[1] == 'init':
84 if args[0] == 'init':
85 if len(args) > 1: raise CommandException
93 if args[0] == 'clean':
94 if len(args) > 1: raise CommandException
124 opts, args = getopts(args, '-u')
125 if len(args):
134 if len(args) == 0:
136 elif len(args) == 1:
137 source.listStats(args[0])
144 if len(args) == 0:
146 elif len(args) == 1:
147 source.listFormulas(args[0])
154 if len(args):
161 if len(args) < 2:
165 merge = int(args[0])
168 stats = source.getStat(args[1])
171 def disp(*args):
172 print "%-35s %12s %12s %4s %5s %5s %5s %10s" % args
240 if len(args):
245 commands(options, command, args)
258 if len(args) != 1:
262 stats = source.getStat(args[0])
264 stats = eval(args[0])
276 if len(args):
431 opts, args = getopts(sys.argv[1:], '-EFJad:g:h:j:m:pr:s:u:T:')
477 if len(args) == 0:
480 command = args[0]
481 args = args[1:]
484 commands(options, command, args)