From 4b71e9b96a498f2e1effaecf3b7cbfbc7f512ce7 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 3 Dec 2021 13:32:10 +0100 Subject: [PATCH] Correct default requirements file name in help Signed-off-by: Gilles Peskine --- scripts/min_requirements.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/min_requirements.py b/scripts/min_requirements.py index db301e891..eecab1c1e 100755 --- a/scripts/min_requirements.py +++ b/scripts/min_requirements.py @@ -99,6 +99,7 @@ class Requirements: ['install'] + pip_install_options + ['-r', req_file_name]) +DEFAULT_REQUIREMENTS_FILE = 'ci.requirements.txt' def main() -> None: """Command line entry point.""" @@ -119,11 +120,12 @@ def main() -> None: " (short for --pip-install-option --user)") parser.add_argument('files', nargs='*', metavar='FILE', help="Requirement files" - " (default: requirements.txt in the script's directory)") + " (default: {} in the script's directory)" \ + .format(DEFAULT_REQUIREMENTS_FILE)) options = parser.parse_args() if not options.files: options.files = [os.path.join(os.path.dirname(__file__), - 'ci.requirements.txt')] + DEFAULT_REQUIREMENTS_FILE)] reqs = Requirements() for filename in options.files: reqs.add_file(filename)