Console does not recognize -p option

Specific support for Deluge on Microsoft Windows OS
Simbiat
Member
Member
Posts: 46
Joined: Fri Jan 10, 2014 1:19 pm

Re: Console does not recognize -p option

Post by Simbiat »

Cas wrote: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.
spaces always did denote arguments. but generally, in Windows you see some like that

*.exe command -option "path" "path_2"

instead of

*.exe "command -option path path_2"

In first example, spaces do delimit the arguments, even if paths have spaces in them, and then quote marks are simply stripped during parsing. In the second case, though it will be a problem. Also, the first case will normally accept any allowed character...

I have an application of my own (http://a12.net.ru if anyone is interested, which I am also planning to migrate to P2P), and it has some batch mode flags which accept any path with spaces and single quotes and stuff. It's on Vb.NET though, so that's why I am assuming,t hat there is some limitation Python, although, I am using a python-based torrent creator, so... Not sure...
Post Reply