diff --git a/import_export_canalblog.py b/import_export_canalblog.py index 4c38ff3..81b3e00 100644 --- a/import_export_canalblog.py +++ b/import_export_canalblog.py @@ -113,7 +113,7 @@ if __name__ == '__main__': import_parser.add_argument("--canalblog", help="URL Canalblog", default="") import_parser.add_argument("--wordpress", help="URL Wordpress", required=True) import_parser.add_argument("--serial", help="Serial execution", action="store_true") - import_parser.add_argument("--remove", help="Remove all", action="store_true") + import_parser.add_argument("--remove-all", dest="remove", help="Remove all", action="store_true") remove_parser.add_argument("--remove-posts", help="Remove all posts", dest="posts", action="store_true") remove_parser.add_argument("--remove-categories", help="Remove all categories", dest="categories", action="store_true") remove_parser.add_argument("--remove-tags", help="Remove all tags", dest="tags", action="store_true") @@ -124,7 +124,7 @@ if __name__ == '__main__': remove_parser.add_argument("--user", help="wordpress user", required=True) remove_parser.add_argument("--password", help="password wordpress's user", default="") remove_parser.add_argument("--wordpress", help="URL Wordpress", required=True) - remove_parser.add_argument("--all", help="Remove all (posts, media, tags, categories)", action="store_true") + remove_parser.add_argument("--all", dest="remove", help="Remove all (posts, media, tags, categories)", action="store_true") remove_parser.add_argument("--posts", help="Remove all posts", action="store_true") remove_parser.add_argument("--categories", help="Remove all categories", action="store_true") remove_parser.add_argument("--tags", help="Remove all tags", action="store_true")