<s> import argparse <EOL> import sys <EOL> from flowy import SWFWorkflowStarter <EOL> def main ( ) : <EOL> parser = argparse . ArgumentParser ( ) <EOL> parser . add_argument ( "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT:name>" ) <EOL> parser . add_argument ( "<STR_LIT:version>" ) <EOL> parser . add_argument ( "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" , type = int , default = None ) <EOL> parser . add_argument ( "<STR_LIT>" , type = int , default = None ) <EOL> parser . add_argument ( "<STR_LIT>" , type = str , default = None ) <EOL> parser . add_argument ( '<STR_LIT:args>' , nargs = argparse . REMAINDER ) <EOL> args = parser . parse_args ( ) <EOL> starter = SWFWorkflowStarter ( args . domain , args . name , args . version , <EOL> args . task_list , args . decision_duration , <EOL> args . workflow_duration , <EOL> child_policy = args . child_policy ) <EOL> return not starter ( * args . args ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> sys . exit ( main ( ) ) </s>
