<s> import argparse <EOL> from pybald . util . console import start_console <EOL> from pybald . util . dev_server import start_dev_server <EOL> def start ( app ) : <EOL> '''<STR_LIT>''' <EOL> parser = argparse . ArgumentParser ( ) <EOL> subparsers = parser . add_subparsers ( help = '<STR_LIT>' , <EOL> dest = "<STR_LIT>" ) <EOL> subparsers . required = True <EOL> parser_console = subparsers . add_parser ( '<STR_LIT>' , help = '<STR_LIT>' ) <EOL> parser_console . set_defaults ( run = start_console ) <EOL> parser_serve = subparsers . add_parser ( '<STR_LIT>' , help = '<STR_LIT>' ) <EOL> parser_serve . add_argument ( '<STR_LIT>' , type = str ) <EOL> parser_serve . add_argument ( '<STR_LIT>' , type = int ) <EOL> parser_serve . set_defaults ( host = '<STR_LIT>' , port = <NUM_LIT> ) <EOL> parser_serve . set_defaults ( run = start_dev_server ) <EOL> options = parser . parse_args ( ) <EOL> options . run ( app , options ) </s>
