Verified Commit 7a3f70fa authored by Adam Mercer's avatar Adam Mercer
Browse files

consistent formatting

parent e27d56cb
...@@ -68,21 +68,36 @@ DEFAULT_TARGET = "sandox" ...@@ -68,21 +68,36 @@ DEFAULT_TARGET = "sandox"
def parse_options(): def parse_options():
# define option parser # define option parser
parser = argparse.ArgumentParser(description='Build RPMs using Koji') parser = argparse.ArgumentParser(description='Build RPMs using Koji')
parser.add_argument('-V', '--version', action='version', parser.add_argument(
version=__version__, '-V', '--version',
help='show version number and exit') action='version',
parser.add_argument('-v', '--verbose', action='count', default=2, version=__version__,
help='show verbose output, give once for INFO, ' help='show version number and exit'
'give twice for DEBUG') )
'-v', '--verbose',
help='show verbose output, give once for INFO, give twice for DEBUG'
# koji options # koji options
koji_options = parser.add_argument_group('Koji Options') koji_options = parser.add_argument_group('Koji Options')
koji_options.add_argument('--target', default=DEFAULT_TARGET, koji_options.add_argument(
help='koji tag to tag (default: %(default)s)') '--target',
koji_options.add_argument('--owner', help='koji package owner') default=DEFAULT_TARGET,
koji_options.add_argument('--scratch', action='store_true', default=False, help='koji tag to tag (default: %(default)s)'
help='perform a scratch build ' )
'(default: %(default)s)') koji_options.add_argument(
help='koji package owner'
help='perform a scratch build (default: %(default)s)'
# source options # source options
source_options = parser.add_argument_group('Source Options') source_options = parser.add_argument_group('Source Options')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment