From 22d59abbbce9b33fabfdedf2becbbc0c135804d6 Mon Sep 17 00:00:00 2001 From: Jordan Shatford Date: Mon, 23 Oct 2023 16:39:24 +1100 Subject: [PATCH] fix(repository): remove help from scripts.py as it is for internal use in npm scripts Signed-off-by: Jordan Shatford --- scripts.py | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/scripts.py b/scripts.py index 9bb8c71e..938b2cd7 100644 --- a/scripts.py +++ b/scripts.py @@ -9,23 +9,11 @@ import subprocess import venv -parser = argparse.ArgumentParser( - 'venv scripts', - formatter_class=argparse.ArgumentDefaultsHelpFormatter -) -parser.add_argument( - '--cwd', - nargs='?', - default=os.getcwd(), - help="The CWD relative to this script." -) +parser = argparse.ArgumentParser('venv scripts (internal use)', add_help=False) +parser.add_argument('--cwd', nargs='?', default=os.getcwd()) subparsers = parser.add_subparsers(dest='command', required=True) -run = subparsers.add_parser( - 'run', help='Run a command in the venv.' -) -pre_commit = subparsers.add_parser( - 'pre-commit', help='Run a pre-commit command in the venv.' -) +run = subparsers.add_parser('run', add_help=False) +pre_commit = subparsers.add_parser('pre-commit', add_help=False) pre_commit.add_argument('script', choices=['run', 'autoupdate']) args, rest = parser.parse_known_args()