JohnDoee / autotorrent

Matches torrents with files and gets them seeded
MIT License
269 stars 34 forks source link

exit code based on whether or not file was added #17

Closed bitdrip closed 6 years ago

bitdrip commented 6 years ago

It would be very nice if adding a torrent returned an exit code indicative of whether or not it was added, so we could do something based on whether it was added or not.

It seems like the -a option accepts one or more files, so perhaps it would only make sense if a single path was passed, which is how I personally use it anyway.

bitdrip commented 6 years ago

Somehow I just noticed the -d flag which deletes torrent files when successfully added, which is a simpler and more elegant way to accomplish this.