9 from mdoc import worker
11 usage = 'mdoc <source> <target-format>'
13 def command_dispatch(args):
15 # check runtime parameters
17 raise RuntimeError("mdoc needs 2 arguments.")
22 return worker.convert(file, format)
25 # evaulate runtime parameters
26 if __name__ == '__main__':
28 ret = command_dispatch(sys.argv[1:])
32 except Exception as e: