cli-delete-posts

Added the possibility to delete single posts or a range of multiple posts at once using the command as following:<br/>
`docker-compose run server ./szuru-admin --delete posts 35 36 40-45`<br/>
Each space represents a single post id, using a `-` between two ids will delete all posts within range, including the first and the last one
This commit is contained in:
anbosuki 2022-07-04 19:22:35 +02:00
parent 3fbe3a0b93
commit 82b79461d6

View file

@ -175,7 +175,8 @@ def main() -> None:
"--delete-posts",
metavar="<post_ids>",
nargs='+',
help="Will delete all posts with the given id's"
help="Will delete all posts with the given id's, all id's are seperated by a space. "
"If you want to delete a range of posts use it like: 37-47 (including the first and last number)"
)
command = parser_top.parse_args()