Revision 2a0d6ae0 pithos/tools/pithos-sh
b/pithos/tools/pithos-sh | ||
---|---|---|
69 | 69 |
def __init__(self, name, argv): |
70 | 70 |
parser = OptionParser('%%prog %s [options] %s' % (name, self.syntax)) |
71 | 71 |
parser.add_option('--url', dest='url', metavar='HOST', |
72 |
default=get_url(), help='use server URL')
|
|
73 |
parser.add_option('--user', dest='user', metavar='USERNAME',
|
|
72 |
default=get_url(), help='server URL (currently: %s)' % get_url())
|
|
73 |
parser.add_option('--user', dest='user', metavar='USER', |
|
74 | 74 |
default=get_user(), |
75 |
help='use account USERNAME')
|
|
76 |
parser.add_option('--token', dest='token', metavar='AUTH',
|
|
75 |
help='account USER (currently: %s)' % get_user())
|
|
76 |
parser.add_option('--token', dest='token', metavar='TOKEN',
|
|
77 | 77 |
default=get_auth(), |
78 |
help='use account AUTH')
|
|
78 |
help='account TOKEN (currently: %s)' % get_auth())
|
|
79 | 79 |
parser.add_option('-v', action='store_true', dest='verbose', |
80 |
default=False, help='use verbose output')
|
|
80 |
default=False, help='verbose output') |
|
81 | 81 |
parser.add_option('-d', action='store_true', dest='debug', |
82 |
default=False, help='use debug output')
|
|
82 |
default=False, help='debug output') |
|
83 | 83 |
self.add_options(parser) |
84 | 84 |
options, args = parser.parse_args(argv) |
85 | 85 |
|
Also available in: Unified diff