apache/incubator-cordova-weinre — pull request #13 by cfg (2012-12-11 14:45:35+00:00)
Title: Add optionsFile CLI paramater

Add the --optionsFile cli parameter to allow passing the path to an options file, which currently is hardcoded to ~/.weinre/server.properties. This makes makes it easier to run as a Windows service using something like this:

```
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\weinre]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"="C:\\Path\\To\\srvany.exe"
"DisplayName"="weinre"
"WOW64"=dword:00000001
"ObjectName"="LocalSystem"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\weinre\Parameters]
"Application"="\"C:\\Path\\To\\nodejs\\node.exe\" C:\\Path\\To\\node_modules\\weinre\\weinre --optionsFile C:\\Path\\To\\server.properties"

```