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:
parent
3fbe3a0b93
commit
82b79461d6
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue