diff --git a/netrun.py b/netrun.py index 2edc879..327ac3a 100755 --- a/netrun.py +++ b/netrun.py @@ -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