Lines Matching refs:p
37 p = optparse.OptionParser ()
39 p.usage = '''src2xml.py [OPTION]... SRC-FILE...'''
50 if 'epilog' in p.__dict__:
51 p.formatter.format_epilog = format_examples
52 p.epilog = examples
54 p.formatter.format_description = format_examples
55 p.description = examples
57 p.description = '''OOo SRC To Layout XML Converter.
62 p.add_option ('-l', '--debug-lexer', action='store_true',
66 p.add_option ('-p', '--debug-parser', action='store_true',
70 p.add_option ('-m', '--debug-macro', action='store_true',
74 p.add_option ('-n', '--dry-run', action='store_true',
78 p.add_option ('-k', '--keep-going', action='store_true',
82 p.add_option ('-i', '--ignore-includes', action='store_true',
86 p.add_option ('-I', '--include-dir', action='append',
103 p.add_option ('--includes-from-file', action='callback', callback=from_file,
110 p.add_option ('--include-path', action='callback', callback=from_path,
117 p.add_option ('--only-expand-macros', action='store_true',
121 p.add_option ('-o', '--output-dir', action='store',
126 p.add_option ('-s', '--post-process', action='store_true',
130 p.add_option ('--stop-on-header', action='store_true',
134 return p
236 p = option_parser ()
239 p.error ("no input files")