Console does not recognize -p option
Console does not recognize -p option
Hi!
I am having an issue with deluge console in 1.3.6 build: it does not recognize -p\--PATH= options for "add" command. Whenever I try to use it, it says exactly this thing:
deluge-console.exe: error: no such option: -p
This makes it impossible to add torrent, while saving it to a specific location.
I also noticed, that if my to .torrent file has spaces and I added it to console command in quotes (as usually is expected on Windows) it splits the string by those spaces, thus trying to add several non-existing torrent files...
Seems like this is the issue on all available windows builds...
I am having an issue with deluge console in 1.3.6 build: it does not recognize -p\--PATH= options for "add" command. Whenever I try to use it, it says exactly this thing:
deluge-console.exe: error: no such option: -p
This makes it impossible to add torrent, while saving it to a specific location.
I also noticed, that if my to .torrent file has spaces and I added it to console command in quotes (as usually is expected on Windows) it splits the string by those spaces, thus trying to add several non-existing torrent files...
Seems like this is the issue on all available windows builds...
Re: Console does not recognize -p option
I'm not in front of my PC at the moment, so I can't test it, but if I remember correctly, the deluge-console.exe in wondows has to have all it's arguments in quotes. Like this:
that should work so long as your deluge isn't in classic mode
as for the spaces, I'm not sure, I know that the windows escape character is '^' so you could try this:
give that a whirl and see if it works.
Code: Select all
deluge-console.exe "add -p C:\Download\Location C:\path\to\torrent.torrent"
as for the spaces, I'm not sure, I know that the windows escape character is '^' so you could try this:
Code: Select all
deluge-console.exe "add -p C:\Download\Location C:\path\to\torrent^ with^ spaces.torrent"
Re: Console does not recognize -p option
Code: Select all
deluge-console.exe "add -p C:\Download\Location C:\path\to\torrent.torrent"
Code: Select all
deluge-console.exe "add -p C:\Download\Location C:\path\to\torrent' 'with' 'spaces.torrent"
Re: Console does not recognize -p option
Can you surround the entire path name in single quotes? like this:
Code: Select all
deluge-console.exe "add -p C:\Download\Location 'C:\path\to\torrent with spaces.torrent'"
Re: Console does not recognize -p option
yes, you can. it will also work. BUT, if the path has a single quote - it will fail, demanding a closing one.laharah wrote:Can you surround the entire path name in single quotes? like this:
Code: Select all
deluge-console.exe "add -p C:\Download\Location 'C:\path\to\torrent with spaces.torrent'"
Re: Console does not recognize -p option
You should be able to backslash escape the spaces, although been a while since tested console paths
Re: Console does not recognize -p option
backslashes do not work. adn they should not, since they are converted to normal slashes, as far as I remember...Cas wrote:You should be able to backslash escape the spaces, although been a while since tested console paths
Re: Console does not recognize -p option
Ah yes sorry forgot about the windows shell interpreting the backslash. In that case you can use backslashed doublequotes around the path:
with the console if in doubt keep adding quotes until it works 
Code: Select all
deluge-console.exe "add -p C:\Download\Location \"C:\path\to\torrent with spaces and quot'd.torrent\""

Re: Console does not recognize -p option
maybe you can then simply remove the original quotes from the interpretor?.. Because, commonly only paths and similar constructions are quoted in Windows CMD language... And then interpret what's inside "" as one single path... Or is it some kind of Python limitation?..Cas wrote:Ah yes sorry forgot about the windows shell interpreting the backslash. In that case you can use backslashed doublequotes around the path:
with the console if in doubt keep adding quotes until it worksCode: Select all
deluge-console.exe "add -p C:\Download\Location \"C:\path\to\torrent with spaces and quot'd.torrent\""
Re: Console does not recognize -p option
It's complicated as the args are processed a few times before console gets them and spaces usually denote separate args. It might be possible but it works well, with a few quirks, so wouldn't want to change it.