Skip to content

Commit

Permalink
fix(repository): remove help from scripts.py as it is for internal us…
Browse files Browse the repository at this point in the history
…e in npm scripts

Signed-off-by: Jordan Shatford <[email protected]>
  • Loading branch information
jordanshatford committed Oct 23, 2023
1 parent a145026 commit 22d59ab
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 22d59ab

Please sign in to comment.