Skip to content

Commit b317bab

Browse files
Removed short version of the allow command
1 parent 1100e14 commit b317bab

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,4 @@ Some times there is a need to install package directly to the base installation
1919

2020
```commandline
2121
pip3 install any-template --allow-no-venv
22-
23-
# OR
24-
25-
pip3 install any-template -anv
2622
```

pip_venv_sure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ def venv_is_active() -> bool:
1919
def main() -> int:
2020

2121
parser = argparse.ArgumentParser(add_help=False)
22-
parser.add_argument("-anv", "--allow-no-venv",
22+
parser.add_argument("--allow-no-venv",
2323
action="store_true",
2424
help="Install packages without checking whether a venv is activated.")
2525
parser.add_argument("--help", action="store_true", help="Show help")
2626

2727
args, rest = parser.parse_known_args()
28-
print(rest)
2928

3029
if args.help:
3130
parser.print_help()

0 commit comments

Comments
 (0)