5 from wizard import command, scripts
8 options, args = parse_args(argv, baton)
9 dir = os.path.abspath(args[0]) if args else os.getcwd()
10 r = scripts.get_quota_usage_and_limit(dir)
11 if r[0] is None or r[1] is None:
15 def parse_args(argv, baton):
16 usage = """usage: %prog quota [DIR]
18 Lists the used quota in bytes for a directory. If
19 a directory is not specified, uses the current working
26 In bytes. Returns an exit code of 1 if quota could
28 parser = command.WizardOptionParser(usage)
29 options, args = parser.parse_all(argv)
31 parser.error("too many arguments")