Add help note about argparse arguments with hyphens.

master
voussoir 2020-10-01 22:45:26 -07:00
parent 24db0d5919
commit a1175cc3d6
1 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,11 @@
''' '''
Batch rename files by replacing the first argument with the second. 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 argparse
import brename import brename