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:
parent
be39dc3caf
commit
274f8b4e56
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user