akolpakov / django-unused-media

Remove unused media files from Django project
MIT License
125 stars 25 forks source link

Add dry-run mode #13

Closed ziima closed 7 years ago

ziima commented 7 years ago

It would be very helpful if the command would have a dry-run mode.

akolpakov commented 7 years ago

There is dry-run mode. Maybe not so obvious. But if you run ./manage.py cleanup_unused_media in interactive mode (default) it will show you what will be removed and ask you confirmation.

What is your suggestion, to add --dry-run option?

ziima commented 7 years ago

The problem is, that the interactive mode will remain hanging. The dry-run should just print the files and quit without a requirement of user input.