Add help note about argparse arguments with hyphens.
This commit is contained in:
parent
24db0d5919
commit
a1175cc3d6
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue