From fd903e9d743765ddca9a85fd07f4c7dea539f3e4 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: May 07 2019 05:00:36 +0000 Subject: Make goipath actually required. --- diff --git a/go2rpm/__main__.py b/go2rpm/__main__.py index fe0754d..1063771 100644 --- a/go2rpm/__main__.py +++ b/go2rpm/__main__.py @@ -409,18 +409,15 @@ def main(): action="store", nargs="?", help="Package commit") - parser.add_argument("goipath", help="Import path", nargs="?") + parser.add_argument("goipath", help="Import path") args = parser.parse_args() if args.show_license_map: licensing.dump_sdpx_to_fedora_map(sys.stdout) return - if args.goipath is None: - parser.error("required import path argument missing") - else: - goipath = re.sub(r"^http(s?)://", r"", args.goipath) - goipath = goipath.strip('/') + goipath = re.sub(r"^http(s?)://", r"", args.goipath) + goipath = goipath.strip('/') if (not re.search(r"^(github.com|gitlab.com|bitbucket.org)", goipath) and args.forge is None):