output encoding cmd

This commit is contained in:
j 2012-01-02 18:02:15 +05:30
commit ed79ad9097
3 changed files with 37 additions and 9 deletions

View file

@ -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:])