diff --git a/README.md b/README.md index 9326f02..543a107 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/setup.cfg b/setup.cfg index ed07f94..834b77e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/src/subprompt/subprompt.py b/src/subprompt/subprompt.py index ac92e90..09e1d0c 100644 --- a/src/subprompt/subprompt.py +++ b/src/subprompt/subprompt.py @@ -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]