# Path: coldsweat/commands.py
# def run():
# 
#     epilog = "Available commands are: %s" % ', '.join(sorted(COMMANDS))
#     usage='%prog command [options] [args]'
# 
#     available_options = [
#         make_option('-s', '--saved-entries',
#             dest='saved_entries', action='store_true', help='export or import saved entries'),
# 
#         make_option('-u', '--username', 
#             dest='username', default=User.DEFAULT_USERNAME, help="specifies a username (default is %s)" % User.DEFAULT_USERNAME),
# 
#         make_option('-w', '--password',
#             dest='reset_password', action='store_true', help='reset a user password'),
# 
#         make_option('-f', '--fetch',
#             dest='fetch_data', action='store_true', help='fetches each feed data after import'),
# 
#         make_option('-p', '--port', default='8080', 
#             dest='port', type='int', help='specifies the port to serve on (default 8080)'),
# 
#         make_option('-r', '--allow-remote-access', action='store_true', dest='allow_remote_access', help='binds to 0.0.0.0 instead of localhost'),
#     ]
#         
#     parser = OptionParser(option_list=available_options, usage=usage, epilog=epilog)
#      
#     command_options, args = parser.parse_args()
#     if not args:
#         parser.error('no command given, use the -h option for a list of available commands')
#         
#     command_name, command_args = args[0].lower(), args[1:]
# 
#     connect()
#     cc = CommandController()
#     try:
#         cc.run_command(command_name, command_options, command_args)
#     except CommandError, ex:
#         parser.error(ex)
#     finally:
#         close()
#         # Flush and close all logging handlers
#         import logging
#         logging.shutdown()


from coldsweat.commands import run
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Description: (Cold)sweat command-line utility

Copyright (c) 2013—2016 Andrea Peltrin
License: MIT (see LICENSE for details)
"""

if __name__ == '__main__':

# Path: coldsweat/commands.py
# def run():
# 
#     epilog = "Available commands are: %s" % ', '.join(sorted(COMMANDS))
#     usage='%prog command [options] [args]'
# 
#     available_options = [
#         make_option('-s', '--saved-entries',
#             dest='saved_entries', action='store_true', help='export or import saved entries'),
# 
#         make_option('-u', '--username', 
#             dest='username', default=User.DEFAULT_USERNAME, help="specifies a username (default is %s)" % User.DEFAULT_USERNAME),
# 
#         make_option('-w', '--password',
#             dest='reset_password', action='store_true', help='reset a user password'),
# 
#         make_option('-f', '--fetch',
#             dest='fetch_data', action='store_true', help='fetches each feed data after import'),
# 
#         make_option('-p', '--port', default='8080', 
#             dest='port', type='int', help='specifies the port to serve on (default 8080)'),
# 
#         make_option('-r', '--allow-remote-access', action='store_true', dest='allow_remote_access', help='binds to 0.0.0.0 instead of localhost'),
#     ]
#         
#     parser = OptionParser(option_list=available_options, usage=usage, epilog=epilog)
#      
#     command_options, args = parser.parse_args()
#     if not args:
#         parser.error('no command given, use the -h option for a list of available commands')
#         
#     command_name, command_args = args[0].lower(), args[1:]
# 
#     connect()
#     cc = CommandController()
#     try:
#         cc.run_command(command_name, command_options, command_args)
#     except CommandError, ex:
#         parser.error(ex)
#     finally:
#         close()
#         # Flush and close all logging handlers
#         import logging
#         logging.shutdown()


# Path: sweat.py
from coldsweat.commands import run

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Description: (Cold)sweat command-line utility

Copyright (c) 2013—2016 Andrea Peltrin
License: MIT (see LICENSE for details)
"""

if __name__ == '__main__':

    run()