diff --git a/osc/commandline.py b/osc/commandline.py index 8fbefce6..6a331ae1 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -18,7 +18,6 @@ import time import traceback from functools import cmp_to_key from operator import itemgetter -from optparse import SUPPRESS_HELP from urllib.parse import urlsplit from urllib.error import HTTPError @@ -6345,7 +6344,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. @cmdln.option('--disable-cpio-bulk-download', action='store_true', help='disable downloading packages as cpio archive from api') @cmdln.option('--cpio-bulk-download', action='store_false', - dest='disable_cpio_bulk_download', help=SUPPRESS_HELP) + dest='disable_cpio_bulk_download', help=argparse.SUPPRESS) @cmdln.option('--download-api-only', action='store_true', help='only fetch packages from the api') @cmdln.option('--oldpackages', metavar='DIR', @@ -6353,9 +6352,9 @@ Please submit there instead, or use --nodevelproject to force direct submission. @cmdln.option('--verbose-mode', metavar='MODE', help='set verbose mode of the "build" program, arguments can be "all" or "vm"') @cmdln.option('--wipe', action='store_true', - help=SUPPRESS_HELP) + help=argparse.SUPPRESS) @cmdln.option('--shell', action='store_true', - help=SUPPRESS_HELP) + help=argparse.SUPPRESS) @cmdln.option('--shell-after-fail', action='store_true', help="run a shell if the build tool fails") @cmdln.option('--shell-cmd', metavar='COMMAND',