Add an option to make pungi-koji print its compose_dir to stdout

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
Patrick Uiterwijk 2017-10-24 03:58:36 +02:00
parent be39dc3caf
commit 274f8b4e56
1 changed files with 9 additions and 0 deletions

View File

@ -154,6 +154,12 @@ def main():
default=[],
help="only create latest symbol link to this compose when compose status matches specified status",
)
parser.add_argument(
"--print-output-dir",
action="store_true",
default=False,
help="print the compose directory"
)
parser.add_argument(
"--quiet",
action="store_true",
@ -231,6 +237,9 @@ def main():
else:
compose_dir = opts.compose_dir
if opts.print_output_dir:
print('Compose dir: %s' % compose_dir)
compose = Compose(conf,
topdir=compose_dir,
debug=opts.debug_mode,