<s> import argparse <EOL> from api import app <EOL> def parse_args ( ) : <EOL> parser = argparse . ArgumentParser ( ) <EOL> parser . add_argument ( '<STR_LIT:port>' , type = int , nargs = '<STR_LIT:?>' , default = <NUM_LIT> ) <EOL> parser . add_argument ( '<STR_LIT>' , dest = '<STR_LIT>' , const = True , nargs = '<STR_LIT:?>' ) <EOL> return parser . parse_args ( ) <EOL> def apply_args ( app , args ) : <EOL> if not args . debug is None : <EOL> app . debug = args . debug <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> args = parse_args ( ) <EOL> apply_args ( app , args ) <EOL> app . run ( host = '<STR_LIT>' , port = args . port ) </s>
