From a1175cc3d6288513793cba7f11c55b9cae54416a Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 1 Oct 2020 22:45:26 -0700 Subject: [PATCH] Add help note about argparse arguments with hyphens. --- breplace.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/breplace.py b/breplace.py index d8e235a..3deea49 100644 --- a/breplace.py +++ b/breplace.py @@ -1,5 +1,11 @@ ''' Batch rename files by replacing the first argument with the second. + +Note: If one of your arguments begins with a hyphen, it will confuse argparse +and it will say "the following arguments are required". You have to add "--" +before your from/to arguments, like this: + +breplace -- " - Copy" "-copy" ''' import argparse import brename