Reorder options

This commit is contained in:
Samuel Sloniker 2022-04-08 14:13:58 -07:00
parent 50292eb2cb
commit 3e3c44075a

View File

@ -35,24 +35,24 @@ parser = argparse.ArgumentParser(
description="Securely run a script from the Internet"
)
parser.add_argument("url", help="URL of the script")
group = parser.add_mutually_exclusive_group()
group.add_argument(
"-s",
"--skip-pager",
action="store_true",
help="Skip pager and confirmation; run script immediately",
parser.add_argument(
"-i",
"--interpreter",
help="Choose interpreter to use (default: `bash`)",
default="bash",
)
group = parser.add_mutually_exclusive_group()
group.add_argument(
"-p",
"--pager",
help="Choose pager to use (default: `less`)",
default="less",
)
parser.add_argument(
"-i",
"--interpreter",
help="Choose interpreter to use (default: `bash`)",
default="bash",
group.add_argument(
"-s",
"--skip-pager",
action="store_true",
help="Skip pager and confirmation; run script immediately",
)
args = parser.parse_args()
url = args.url