Issue #43: fixed command line override for "restore last window" feature.

This commit is contained in:
Lorenz Cuno Klopfenstein 2013-10-21 09:55:01 +02:00
parent 39a33a4a67
commit e66be3db45

View file

@ -67,11 +67,17 @@ namespace OnTopReplica.StartupOptions {
var cmdOptions = new NDesk.Options.OptionSet()
.Add<long>("windowId=", "Window handle ({HWND}) to be cloned.", id => {
options.WindowId = new IntPtr(id);
options.WindowTitle = null;
options.WindowClass = null;
})
.Add<string>("windowTitle=", "Partial {TITLE} of the window to be cloned.", s => {
options.WindowId = null;
options.WindowTitle = s;
options.WindowClass = null;
})
.Add<string>("windowClass=", "{CLASS} of the window to be cloned.", s => {
options.WindowId = null;
options.WindowTitle = null;
options.WindowClass = s;
})
.Add("v|visible", "If set, only clones windows that are visible.", s => {