From f21799cb9e485cdee58c02b17dde2367454f8897 Mon Sep 17 00:00:00 2001 From: Sérgio M. Basto Date: Apr 27 2025 05:28:27 +0000 Subject: -r as shortcut of --root same as mock command Signed-off-by: Sérgio M. Basto --- diff --git a/pyrpkg/cli.py b/pyrpkg/cli.py index 6cf1656..2ba3c99 100644 --- a/pyrpkg/cli.py +++ b/pyrpkg/cli.py @@ -1105,7 +1105,7 @@ class cliClient(object): "directory for mock is created and populated " "with a config file created with mock-config.") mockbuild_parser.add_argument( - '--root', '--mock-config', metavar='CONFIG', + '--root', '--mock-config', '-r', metavar='CONFIG', dest='root', help='Override mock configuration (like mock -r)') # Allow the user to just pass "--md5" which will set md5 as the # hash, otherwise use the default of sha256