"""
# create parser to parse -section
parser = ArgumentParser(add_help=False)
- parser.add_argument('-section', default='general',
- help='config section to use')
+ parser.add_argument('-section', default='general')
# read config section, specified in command line
parsed, argv = parser.parse_known_args(argv)
# recreate parser to parse rest of the command line
parser = ArgumentParser(description='Release Engineering Process Assistant')
+ parser.add_argument('-section', default='general',
+ help='config section to use')
# Define subcommands using setup.py entry points
subparsers = parser.add_subparsers(help='sub-command help')
for entry in pkg_resources.iter_entry_points(group='repa_commands'):