#!/usr/bin/env python
# -*- coding: utf-8 -*-

import click
import sys

math_formats = ['asciimath', 'latex', 'mathml']


@click.command()
@click.option('--equation', prompt='Equation', help='Equation to convert')
@click.option('--iformat', type=click.Choice(math_formats), prompt='Input Format', help='Equation input format')
@click.option('--oformat', type=click.Choice(math_formats), prompt='Output Format', help='Equation output format')
def convert(equation, iformat, oformat):
    if (iformat == oformat):
        print "Nothing to convert here. Input and output format are the same!"
        sys.exit(1)
    click.echo('Equation %s!' % equation)

if __name__ == '__main__':
    convert()

@@ -65,20 +65,21 @@
 rt sys%0A%0A
-math
+input
 _formats
@@ -114,16 +114,52 @@
 athml'%5D%0A
+output_formats = %5B'latex', 'mathml'%5D
 %0A%0A@click
@@ -281,36 +281,37 @@
 pe=click.Choice(
-math
+input
 _formats), promp
@@ -403,20 +403,22 @@
 .Choice(
-math
+output
 _formats

no asciimath output