<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cli():
 """Function for cli"""

    epilog = ('The actions are:\n'
            '\tnew\t\tCreate a new torn app\n'
            '\trun\t\tRun the app and start a Web server for development\n'
            '\tcontroller\tCreate a new controller\n'
            '\tversion\t\treturns the current version of torn\n')
    parser = ArgumentParser(prog='torn',
                            description='A full fledged MVC framework based on Tornado and Jinja2 templating',
                            formatter_class=RawDescriptionHelpFormatter,
                            epilog=epilog,
                            usage='%(prog)s [action [arguments]]')

    parser.add_argument('action',
                        nargs=1,
                        choices=['new', 'run', 'controller','version'],
                        help='Action to be performed with the application')

    parser.add_argument('--name',
                        type=str,
                        default="sampleApp",
                        help='Name for the given action')
    if len(sys.argv)==1:
        parser.print_help(sys.stderr)
        sys.exit(1)
    args = parser.parse_args()
    console.handler(args)