Introduce --output-na-placeholder (closes #27896)

This commit is contained in:
Sergey M․ 2021-01-22 23:51:22 +07:00
commit 142c584063
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D
5 changed files with 21 additions and 8 deletions

View file

@ -689,6 +689,10 @@ def parseOpts(overrideArguments=None):
'-o', '--output',
dest='outtmpl', metavar='TEMPLATE',
help=('Output filename template, see the "OUTPUT TEMPLATE" for all the info'))
filesystem.add_option(
'--output-na-placeholder',
dest='outtmpl_na_placeholder', metavar='PLACEHOLDER', default='NA',
help=('Placeholder value for unavailable meta fields in output filename template (default is "%default")'))
filesystem.add_option(
'--autonumber-size',
dest='autonumber_size', metavar='NUMBER', type=int,