Pull request #25: replace to replace-signature

Merge in KSC/webapp-tools from replace-signature to master

* commit 'af885f2c32437a491a6800b99d500f0079355b66':
  replace  to replace-signature
This commit is contained in:
Martijn Alberts 2021-01-21 14:47:11 +01:00
commit 54cf3a0678

View File

@ -64,7 +64,7 @@ def opt_args(print_help=None):
group = OptionGroup(parser, "Signature", "")
group.add_option("--backup-signature", dest="backup_signature", action="store_true", help="Backup signature")
group.add_option("--restore-signature", dest="restore_signature", action="store", help="Restore signature (need file name)")
group.add_option("--replace", dest="replace", action="store_true", help="Replace existing signature, file layout must be: username_signature-name_signatureid.html")
group.add_option("--replace-signature", dest="replace_signature", action="store_true", help="Replace existing signature, file layout must be: username_signature-name_signatureid.html")
group.add_option("--default-signature", dest="default_signature", action="store_true", help="Set signature as default one")
parser.add_option_group(group)
@ -636,7 +636,7 @@ def main():
if options.backup_signature:
backup_signature(user, options.location)
if options.restore_signature:
restore_signature(user, options.restore_signature, options.replace, options.default_signature)
restore_signature(user, options.restore_signature, options.replace_signature, options.default_signature)
# Advanced injection option
if options.add_option: