} else if (argv[optind].equals("-d") | argv[optind].equals("-v") ) { debug = true;
    public static void main(String[] argv) {    	String fileNotFound = "preference file not found on disk";    	String configfile = null;    	display = new Display();        links = new ArrayList();        		// parse args		int optind;		for (optind = 0; optind < argv.length; optind++) {			if ( argv[optind].startsWith("--help") ) {				printCommandlineHelp();				System.exit(1);			// give additional verbosity/debug			} else if (argv[optind].equals("-d") | argv[optind].equals("-v") ) {				debug = true;			// ed2k/http link for submission			} else if (argv[optind].toLowerCase().startsWith("ed2k://") | 					argv[optind].toLowerCase().startsWith("http://")) {				links.add( argv[optind] );			// parameter with a value			} else if ( argv.length > optind + 1 )	{				// configfile-parameter				if (argv[optind].equals("-c")) {					try {						configfile = (String) argv[++optind];						PreferenceLoader.initialize( configfile );						G2GuiResources.initialize();					}					catch (IOException e) {						System.err.println(fileNotFound + ": " + configfile);					} 				// a link parameter for submission [deprecated]				} else if (argv[optind].equals("-l")) {					links.add( argv[++optind] );				// hostname and optionally port				} else if (argv[optind].equals("-h")) {					String[] strings = RegExp.split(argv[++optind], ':');					if ( strings.length == 2 ) {						hostname = strings[0];						port = port = new Integer( strings[1] ).intValue();					} else if (strings.length == 1) {						hostname = strings[0];						port = 4001;					}				// username				} else if (argv[optind].equals("-u")) {					username = argv[++optind];				// password				} else if (argv[optind].equals("-p")) {					password = argv[++optind];				// ? simply ignore				} else if (argv[optind].equals("--")) {					optind++;					break;				}			} else {				break;			}		}		// if there has not been specified a config-file, use default		if (configfile == null) {			G2GuiResources.initialize();			try {				PreferenceLoader.initialize();			}			catch (IOException e) {				System.err.println(fileNotFound);			}		}			// we received links? -> send them		if ( links.size() > 0 ) {			launch( links );			return;		}			        /*determine wether a new instance of G2gui is allowed: */        if (PreferenceLoader.loadBoolean("allowMultipleInstances")	      || !PreferenceLoader.loadBoolean("running") || debug) {            launch();        } else {            MessageBox alreadyRunning = new MessageBox(new Shell(display),                    SWT.YES | SWT.NO | SWT.ICON_ERROR);            alreadyRunning.setText(G2GuiResources.getString("G2_MULTIPLE_WARNING_HEAD"));            alreadyRunning.setMessage(G2GuiResources.getString("G2_MULTIPLE_WARNING_MESSAGE"));            if (alreadyRunning.open() == SWT.YES) {                launch();            }        }    }