Currently setup.exe silently terminates when starting it with a command line parameter that it does not know about. It should show the usage message in this case.
>From bd41fd08b8be7cc9e150cb8edefa48519309ecd6 Mon Sep 17 00:00:00 2001 From: Achim Gratz <strom...@stromeko.de> Date: Sat, 10 Aug 2013 18:05:24 +0200 Subject: [PATCH] show parameter usage when option processing was unsuccessful * main.cc (WinMain): Show parameter usage before exiting when options processing was unsuccessful (this usually means that an unknown option was given on the command line). --- main.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.cc b/main.cc index fc2fcca..ad4dd72 100644 --- a/main.cc +++ b/main.cc @@ -243,7 +243,11 @@ WinMain (HINSTANCE h, local_dir = std::string (cwd); if (!GetOption::GetInstance ().Process (argc,_argv, NULL)) - exit (1); + { + GetOption::GetInstance ().ParameterUsage (cout + << "\nCommand Line Options:\n"); + exit (1); + } if (!((string) Arch).size ()) { -- 1.8.3.1
Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada