replace to replace-signature

This commit is contained in:
rvangenderen 2021-01-21 14:41:35 +01:00
parent be1d9e2308
commit af885f2c32

View File

@ -64,7 +64,7 @@ def opt_args(print_help=None):
group = OptionGroup(parser, "Signature", "") group = OptionGroup(parser, "Signature", "")
group.add_option("--backup-signature", dest="backup_signature", action="store_true", help="Backup 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("--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") group.add_option("--default-signature", dest="default_signature", action="store_true", help="Set signature as default one")
parser.add_option_group(group) parser.add_option_group(group)
@ -636,7 +636,7 @@ def main():
if options.backup_signature: if options.backup_signature:
backup_signature(user, options.location) backup_signature(user, options.location)
if options.restore_signature: 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 # Advanced injection option
if options.add_option: if options.add_option: