diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2017-06-22 21:56:30 +0200 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2017-06-22 22:03:10 +0200 |
commit | bf86d52e5977f28b660d78b62ea4230cc8c6c975 (patch) | |
tree | bf1daf15da69e119e4bb70e48ca37ce09781e755 /gtkdoc-scan.in | |
parent | a6da7887030e7cf4a38fe23cf8ae12a2de66486a (diff) | |
download | gtk-doc-bf86d52e5977f28b660d78b62ea4230cc8c6c975.tar.gz |
tools: cleanup options handling
Use the 'required' flags for mandatory args. Drop some dest flags where not needed.
Diffstat (limited to 'gtkdoc-scan.in')
-rwxr-xr-x | gtkdoc-scan.in | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in index cd6c0f2..954c811 100755 --- a/gtkdoc-scan.in +++ b/gtkdoc-scan.in @@ -32,7 +32,8 @@ if __name__ == '__main__': parser = argparse.ArgumentParser( description='gtkdoc-scan version %s - scan header files for public symbols' % config.version) parser.add_argument('--version', action='version', version=config.version) - parser.add_argument('--module', default='', help='Name of the doc module being parsed.') + parser.add_argument('--module', required=True, + help='Name of the doc module being processed.') parser.add_argument('--source-dir', action='append', default=[], help='Directories containing the source files to scan') parser.add_argument('--ignore-headers', default='', @@ -52,9 +53,6 @@ if __name__ == '__main__': parser.add_argument('headers', nargs='*') options = parser.parse_args() - if options.module == '': - print('Error, missing module.') - sys.exit(1) common.setup_logging() |