output encoding cmd
This commit is contained in:
parent
5f46806e1b
commit
ed79ad9097
3 changed files with 37 additions and 9 deletions
|
|
@ -25,7 +25,7 @@ if __name__ == '__main__':
|
|||
parser.print_help()
|
||||
sys.exit()
|
||||
|
||||
actions = ('scan', 'sync', 'upload', 'extract', 'clean')
|
||||
actions = ('scan', 'sync', 'upload', 'extract', 'clean', 'cmd')
|
||||
if not args or args[0] not in actions:
|
||||
parser.error('you must specify a valid action. \n\t\tknown actions are: %s' % ', '.join(actions))
|
||||
|
||||
|
|
@ -36,5 +36,5 @@ if __name__ == '__main__':
|
|||
else:
|
||||
offline = False
|
||||
c = pandora_client.Client(opts.config, offline)
|
||||
getattr(c, action)()
|
||||
getattr(c, action)(args[1:])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue