def _cli_argument_parser():
argp = argparse.ArgumentParser(
description='Produce Lilypond documentation')
argp.add_argument(
'path', metavar='PATH',
help='The file or directory to parse')
argp.add_argument(
'--output', '-o', metavar='FILE',
help='The output file. If not given, prints to standard output')
argp.add_argument(
'--trace-parser', action='store_true', dest='trace_parser',
help='Print debug information from the parser')
argp.add_argument(
'-d', '--debug',
help="Detailed debugging information",
action="store_const", dest="loglevel", const=logging.DEBUG,
default=logging.WARNING)
argp.add_argument(
'-v', '--verbose',
help="Verbose output",
action="store_const", dest="loglevel", const=logging.INFO)
return argp
评论列表
文章目录