@Override
	public void launch(GhidraApplicationLayout ghidraLayout, String[] params) {

		printMaxMemory();

		if (params.length == 0) {
			printUsage();
			return;
		}

		layout = ghidraLayout;

		try {
			run(params);
		}
		catch (MalformedURLException e) {
			String msg = e.getMessage();
			if (msg == null) {
				e.printStackTrace();
			}
			else {
				Msg.error(this, "Invalid URL specified: " + msg);
			}
			System.exit(22); // EINVAL
		}
		catch (IllegalArgumentException e) {
			Msg.error(this, e.getMessage());
			System.out.println("Execute \"bsim\" without arguments to display usage details");
			System.exit(22); // EINVAL
		}
		catch (Exception e) {
			String msg = e.getMessage();
			if (msg == null) {
				e.printStackTrace();
			}
			else {
				Msg.error(this, msg);
			}
			System.exit(1); // Misc Error
		}
	}
Exports exe signature to local folder in XML format.

@param params the command-line params
@throws IOException if there's an error establishing the database connection
@throws LSHException if there's an error issuing the query
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/ingest/BSimLaunchable.java