Format code base with black
https://black.readthedocs.io/en/stable/ JIRA: COMPOSE-4086 Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
38142d30ba
commit
41a629969c
84 changed files with 5748 additions and 3325 deletions
|
|
@ -22,24 +22,32 @@ from pungi_utils import patch_iso
|
|||
|
||||
def main(args=None):
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('-v', '--verbose', action='store_true',
|
||||
help='Print debugging information')
|
||||
parser.add_argument('--supported', choices=('true', 'false'),
|
||||
help='Override supported bit on the ISO')
|
||||
parser.add_argument('--volume-id',
|
||||
help='Override volume ID on the ISO')
|
||||
parser.add_argument('--force-arch',
|
||||
help='Treat the ISO as bootable on given architecture')
|
||||
parser.add_argument('target', metavar='TARGET_ISO',
|
||||
help='which file to write the result to')
|
||||
parser.add_argument('source', metavar='SOURCE_ISO',
|
||||
help='source ISO to work with')
|
||||
parser.add_argument('dirs', nargs="+", metavar='GRAFT_DIR',
|
||||
help='extra directories to graft on the ISO')
|
||||
parser.add_argument(
|
||||
"-v", "--verbose", action="store_true", help="Print debugging information"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--supported",
|
||||
choices=("true", "false"),
|
||||
help="Override supported bit on the ISO",
|
||||
)
|
||||
parser.add_argument("--volume-id", help="Override volume ID on the ISO")
|
||||
parser.add_argument(
|
||||
"--force-arch", help="Treat the ISO as bootable on given architecture"
|
||||
)
|
||||
parser.add_argument(
|
||||
"target", metavar="TARGET_ISO", help="which file to write the result to"
|
||||
)
|
||||
parser.add_argument("source", metavar="SOURCE_ISO", help="source ISO to work with")
|
||||
parser.add_argument(
|
||||
"dirs",
|
||||
nargs="+",
|
||||
metavar="GRAFT_DIR",
|
||||
help="extra directories to graft on the ISO",
|
||||
)
|
||||
opts = parser.parse_args(args)
|
||||
|
||||
level = logging.DEBUG if opts.verbose else logging.INFO
|
||||
format = '%(levelname)s: %(message)s'
|
||||
format = "%(levelname)s: %(message)s"
|
||||
logging.basicConfig(level=level, format=format)
|
||||
log = logging.getLogger()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue