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" description="Securely run a script from the Internet"
) )
parser.add_argument("url", help="URL of the script") parser.add_argument("url", help="URL of the script")
group = parser.add_mutually_exclusive_group() parser.add_argument(
group.add_argument( "-i",
"-s", "--interpreter",
"--skip-pager", help="Choose interpreter to use (default: `bash`)",
action="store_true", default="bash",
help="Skip pager and confirmation; run script immediately",
) )
group = parser.add_mutually_exclusive_group()
group.add_argument( group.add_argument(
"-p", "-p",
"--pager", "--pager",
help="Choose pager to use (default: `less`)", help="Choose pager to use (default: `less`)",
default="less", default="less",
) )
parser.add_argument( group.add_argument(
"-i", "-s",
"--interpreter", "--skip-pager",
help="Choose interpreter to use (default: `bash`)", action="store_true",
default="bash", help="Skip pager and confirmation; run script immediately",
) )
args = parser.parse_args() args = parser.parse_args()
url = args.url url = args.url