2 # Written by Alec Warner <antarus@gentoo.org>
3 # This code is hereby placed in the public domain.
5 """A simple driver file for use_desc_gen."""
13 """Simple Option Parsing."""
15 parser = optparse.OptionParser()
16 parser.add_option('-r', '--repo_path', help=('path to repository from '
17 'which the documentation will be generated.'))
18 parser.add_option('-c', '--category_file', help=('path to a category',
19 'file if repo_path lacks a profile/category file'))
21 opts, unused_args = parser.parse_args()
23 if not opts.repo_path:
24 parser.error('--repo_path is a required option')
26 logging.debug('REPO_PATH is %s' % opts.repo_path)
28 return (opts, unused_args)
33 opts, unused_args = GetOpts()
34 use_desc_gen.FindMetadataFiles(opts.repo_path, opts.category_file)
37 if __name__ == '__main__':