From 3e3c44075a9d25fe1d91b48e875bc33b70397b66 Mon Sep 17 00:00:00 2001 From: Sam Sloniker Date: Fri, 8 Apr 2022 14:13:58 -0700 Subject: [PATCH] Reorder options --- netrun.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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