Revision 10998c60
b/tools/store | ||
---|---|---|
63 | 63 |
return _cli_commands[name] |
64 | 64 |
|
65 | 65 |
class Command(object): |
66 |
syntax = '' |
|
67 |
|
|
66 | 68 |
def __init__(self, name, argv): |
67 | 69 |
parser = OptionParser('%%prog %s [options] %s' % (name, self.syntax)) |
68 | 70 |
parser.add_option('--host', dest='host', metavar='HOST', |
... | ... | |
439 | 441 |
help='define sharing object policy') |
440 | 442 |
parser.add_option('--touch', action='store_true', |
441 | 443 |
dest='touch', default=False, |
442 |
help='change file properties') |
|
443 |
|
|
444 |
|
|
444 |
help='change object properties') |
|
445 | 445 |
|
446 | 446 |
def execute(self, path, srcpath='-', *args): |
447 | 447 |
headers = {} |
... | ... | |
553 | 553 |
self.client.set_account_groups(groups) |
554 | 554 |
|
555 | 555 |
def print_usage(): |
556 |
cmd = Command([]) |
|
556 |
cmd = Command('', [])
|
|
557 | 557 |
parser = cmd.parser |
558 | 558 |
parser.usage = '%prog <command> [options]' |
559 | 559 |
parser.print_help() |
Also available in: Unified diff