Fix usage message
This commit is contained in:
parent
8818b0ddcd
commit
6220caecce
|
@ -3,7 +3,7 @@ Substitute every match of a regex in multiple files - with confirmation prompts.
|
|||
```
|
||||
subprompt [REGEX] [SUB] [FILES...]
|
||||
```
|
||||
Install through PyPi:
|
||||
Install it through PyPi:
|
||||
```
|
||||
python3.9 -m pip install subprompt
|
||||
```
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[metadata]
|
||||
name = subprompt
|
||||
version = 0.0.3
|
||||
version = 0.0.4
|
||||
author = Augusto Lenz Gunsch
|
||||
author_email = augusto@augustogunsch.com
|
||||
description = Substitute Regex in files with prompt confirmation
|
||||
|
|
|
@ -26,7 +26,6 @@ import re
|
|||
import hashlib
|
||||
import os
|
||||
from sys import argv, stderr
|
||||
from os.path import basename
|
||||
from colorama import init, Fore, Back, Style
|
||||
|
||||
init(autoreset=True)
|
||||
|
@ -124,7 +123,7 @@ class Filter:
|
|||
|
||||
def run(args):
|
||||
if len(args) < 3:
|
||||
print('usage: {0} [REGEX] [SUB] [FILES...]'.format(basename(__file__)), file=stderr)
|
||||
print('usage: subprompt [REGEX] [SUB] [FILES...]', file=stderr)
|
||||
exit(1)
|
||||
|
||||
regex = args[0]
|
||||
|
|
Loading…
Reference in New Issue