deluge-console --remove_data no such option

General support for problems installing or using Deluge
Post Reply
roadcawe
New User
New User
Posts: 4
Joined: Wed Jul 23, 2014 6:57 pm

deluge-console --remove_data no such option

Post 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?
Last edited by roadcawe on Mon Jul 28, 2014 2:57 pm, edited 1 time in total.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: deluge-console --remove_data no such option

Post by Cas »

'--remove-data' is for the 'del' command...
roadcawe
New User
New User
Posts: 4
Joined: Wed Jul 23, 2014 6:57 pm

Re: deluge-console --remove_data no such option

Post 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.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: deluge-console --remove_data no such option

Post 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'
roadcawe
New User
New User
Posts: 4
Joined: Wed Jul 23, 2014 6:57 pm

Re: deluge-console --remove_data no such option

Post 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

Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: deluge-console --remove_data no such option

Post by Cas »

The quotes are not optional...
roadcawe
New User
New User
Posts: 4
Joined: Wed Jul 23, 2014 6:57 pm

Re: deluge-console --remove_data no such option

Post 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. :-)
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: deluge-console --remove_data no such option

Post 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
Post Reply