Add help note about argparse arguments with hyphens.

This commit is contained in:
voussoir 2020-10-01 22:45:26 -07:00
parent 24db0d5919
commit a1175cc3d6

View file

@ -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