def main(argv=None):
program_name = __programm_name__<EOL>program_version = "<STR_LIT>" % __version__<EOL>program_descrption = __programm_description__<EOL>try:<EOL><INDENT>parser = ArgumentParser(prog=program_name, description=program_descrption)<EOL>parser.add_argument("<STR_LIT>", "<STR_LIT>", dest="<STR_LIT>", action="<STR_LIT:count>", help="<STR_LIT>")<EOL>parser.add_argument("<STR_LIT>", "<STR_LIT>", action="<STR_LIT:store_true>", help="<STR_LIT>")<EOL>parser.add_argument("<STR_LIT>", "<STR_LIT>", action="<STR_LIT:version>", version=program_version)<EOL>parser.add_argument("<STR_LIT>", help="<STR_LIT>")<EOL>subparsers = parser.add_subparsers(help="<STR_LIT>", dest="<STR_LIT>")<EOL>subparsers.add_parser("<STR_LIT:status>", help="<STR_LIT>")<EOL>subparsers.add_parser("<STR_LIT>", help="<STR_LIT>")<EOL>subparsers.add_parser("<STR_LIT>", help="<STR_LIT>")<EOL>subparsers.add_parser("<STR_LIT>", help="<STR_LIT>")<EOL>start_subparser = subparsers.add_parser("<STR_LIT:start>", help="<STR_LIT>")<EOL>start_subparser.add_argument("<STR_LIT>", help="<STR_LIT>")<EOL>stop_subparser = subparsers.add_parser("<STR_LIT>", help="<STR_LIT>")<EOL>stop_subparser.add_argument("<STR_LIT>", help="<STR_LIT>")<EOL>restart_subparser = subparsers.add_parser("<STR_LIT>", help="<STR_LIT>")<EOL>restart_subparser.add_argument("<STR_LIT>", help="<STR_LIT>")<EOL>remove_subparser = subparsers.add_parser("<STR_LIT>", help="<STR_LIT>")<EOL>remove_subparser.add_argument("<STR_LIT>", help="<STR_LIT>")<EOL>args = parser.parse_args(argv)<EOL>verbose = args.verbose<EOL>host_pattern = getattr(args, "<STR_LIT>")<EOL>supervisorctl_action = getattr(args, "<STR_LIT>")        <EOL>sudo = args.sudo<EOL>ansible_executable = "<STR_LIT>"<EOL>supervisorctl_executable = "<STR_LIT>"<EOL>ansible_action_option = "<STR_LIT>"<EOL>if sudo:<EOL><INDENT>supervisorctl_command = "<STR_LIT>" + supervisorctl_executable + "<STR_LIT:U+0020>" + supervisorctl_action<EOL><DEDENT>else:<EOL><INDENT>supervisorctl_command = supervisorctl_executable + "<STR_LIT:U+0020>" + supervisorctl_action<EOL><DEDENT>if supervisorctl_action not in ['<STR_LIT:status>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>supervisorctl_argument = getattr(args, "<STR_LIT>")<EOL>supervisorctl_command = supervisorctl_command + '<STR_LIT:U+0020>' + supervisorctl_argument<EOL><DEDENT>if verbose ><NUM_LIT:0>:<EOL><INDENT>verbose_level = "<STR_LIT:->"+ "<STR_LIT:v>"*verbose<EOL>print(("<STR_LIT>" + verbose_level))<EOL>print("<STR_LIT>")<EOL>print(args)   <EOL>retcode = call([ansible_executable, host_pattern, verbose_level, ansible_action_option, supervisorctl_command,])<EOL><DEDENT>else:<EOL><INDENT>retcode = call([ansible_executable, host_pattern, ansible_action_option, supervisorctl_command])<EOL><DEDENT>return retcode<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>
Command line options.