* When specifying invalid arguments, an error message is now printed. This fixes bug #714.
* Removed some useless information. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18950 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -10,12 +10,10 @@
|
|||||||
* Matt Madia
|
* Matt Madia
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Workspaces window trick found by Michael "Minox" Paine.
|
/*!
|
||||||
* (using B_ALL_WORKSPACES as flags in BWindow)
|
Workspaces window trick found by Michael "Minox" Paine.
|
||||||
* Found out that using 0xffffffff as Flags was causing the window not to close on Alt-W
|
(using B_ALL_WORKSPACES as flags in BWindow)
|
||||||
* hey Workspaces get Flags of Window 0
|
*/
|
||||||
* gives 0x00008080 which makes it.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#include <Alert.h>
|
#include <Alert.h>
|
||||||
@@ -358,6 +356,12 @@ WorkspacesApp::ArgvReceived(int32 argc, char **argv)
|
|||||||
// if the app is running, don't quit
|
// if the app is running, don't quit
|
||||||
// but if it isn't, cancel the complete run, so it doesn't
|
// but if it isn't, cancel the complete run, so it doesn't
|
||||||
// open any window
|
// open any window
|
||||||
|
if (IsLaunching())
|
||||||
|
Quit();
|
||||||
|
} else {
|
||||||
|
// some unknown arguments were specified
|
||||||
|
fprintf(stderr, "Invalid argument: %s\n", argv[i]);
|
||||||
|
|
||||||
if (IsLaunching())
|
if (IsLaunching())
|
||||||
Quit();
|
Quit();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user