* 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:
Axel Dörfler
2006-09-27 18:00:35 +00:00
parent b631d2f40d
commit 646182be71
+10 -6
View File
@@ -10,12 +10,10 @@
* Matt Madia
*/
/** Workspaces window trick found by Michael "Minox" Paine.
* (using B_ALL_WORKSPACES as flags in BWindow)
* Found out that using 0xffffffff as Flags was causing the window not to close on Alt-W
* hey Workspaces get Flags of Window 0
* gives 0x00008080 which makes it.
*/
/*!
Workspaces window trick found by Michael "Minox" Paine.
(using B_ALL_WORKSPACES as flags in BWindow)
*/
#include <Alert.h>
@@ -358,6 +356,12 @@ WorkspacesApp::ArgvReceived(int32 argc, char **argv)
// if the app is running, don't quit
// but if it isn't, cancel the complete run, so it doesn't
// open any window
if (IsLaunching())
Quit();
} else {
// some unknown arguments were specified
fprintf(stderr, "Invalid argument: %s\n", argv[i]);
if (IsLaunching())
Quit();
}