Page 1 of 1

deluge-console --remove_data no such option

Posted: Wed Jul 23, 2014 7:02 pm
by roadcawe
On Windows attempting to use deluge-console to remove a torrent and its data. The command I'm using is: deluge-console --remove_data del pmp-00402.iso
I get the following error message: deluge-console: error: no such option: --remove_data

Otherwise, the command works as expected if I don't use the --remove_data option. Anyone have a clue as to what I'm doing wrong. Is the option really something other than what is specified in the command usage text?

Re: deluge-console --remove_data no such option

Posted: Thu Jul 24, 2014 10:16 am
by Cas
'--remove-data' is for the 'del' command...

Re: deluge-console --remove_data no such option

Posted: Mon Jul 28, 2014 2:56 pm
by roadcawe
Yes. That is what I'm trying to do. The command is: deluge-console --remove_data del pmp-00402.iso
which fails with the "no such option" error.

Re: deluge-console --remove_data no such option

Posted: Mon Jul 28, 2014 4:18 pm
by Cas
'--remove-data' is for the 'del' command...


I.e it is not for the deluge-console command and thus deluge-console complains it is not an option!

Code: Select all

deluge-console 'del --remove_data pmp-00402.iso'

Re: deluge-console --remove_data no such option

Posted: Mon Jul 28, 2014 4:48 pm
by roadcawe
Here is what `deluge-console` says it supposed to understand.

Code: Select all

C:\Program Files (x86)\Deluge>deluge-console help del
Usage: rm <torrent-id>

Options:
  --remove_data  remove the torrent's data
  -h, --help     show this help message and exit

Remove a torrent
Here's what I get when I try it in various ways:

Code: Select all

c:\LabSeeder>deluge-console del --remove_data pmp-00402.iso
Usage: deluge-console [options] [actions]

deluge-console: error: no such option: --remove_data

c:\LabSeeder>deluge-console --remove_data del pmp-00402.iso
Usage: deluge-console [options] [actions]

deluge-console: error: no such option: --remove_data

c:\LabSeeder>deluge-console del pmp-00402.iso --remove_data
Usage: deluge-console [options] [actions]

deluge-console: error: no such option: --remove_data


Re: deluge-console --remove_data no such option

Posted: Mon Jul 28, 2014 7:11 pm
by Cas
The quotes are not optional...

Re: deluge-console --remove_data no such option

Posted: Mon Jul 28, 2014 9:07 pm
by roadcawe
Success! It seems that it only likes double-quotes, At least that's the case on Windows. I haven't tried it on Linux.

Code: Select all

c:\LabSeeder>deluge-console 'del --remove_data pmp-00402.iso'
Usage: deluge-console [options] [actions]

deluge-console: error: no such option: --remove_data

c:\LabSeeder>deluge-console "del --remove_data pmp-00402.iso"

c:\LabSeeder>
Thanks for hanging in there with me and helping. :-)

Re: deluge-console --remove_data no such option

Posted: Thu Jul 31, 2014 10:47 am
by Cas
Yer I should have used double-quotes as it's most reliable :)

Just for reference, there is a ticket that should do away with the need for quotes: http://dev.deluge-torrent.org/ticket/2470