<s> import argparse <EOL> from alerta . app import app <EOL> from alerta . app import db <EOL> from alerta . version import __version__ <EOL> def main ( ) : <EOL> parser = argparse . ArgumentParser ( <EOL> prog = '<STR_LIT>' , <EOL> description = '<STR_LIT>' <EOL> ) <EOL> parser . add_argument ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> type = int , <EOL> default = <NUM_LIT> , <EOL> help = '<STR_LIT>' <EOL> ) <EOL> parser . add_argument ( <EOL> '<STR_LIT>' , <EOL> action = '<STR_LIT:store_true>' , <EOL> default = False , <EOL> help = '<STR_LIT>' <EOL> ) <EOL> args = parser . parse_args ( ) <EOL> app . logger . info ( '<STR_LIT>' , __version__ ) <EOL> app . logger . info ( '<STR_LIT>' , db . get_version ( ) ) <EOL> app . run ( host = '<STR_LIT>' , port = args . port , debug = args . debug , threaded = True ) </s>
