private Desktop desktop;
+ protected Commands cmds;
+
public static AlignFrame currentAlignFrame;
static
}
}
// Run Commands from cli
- boolean commandsSuccess = Commands.processArgs(argparser, headlessArg);
+ cmds = new Commands(argparser, headlessArg);
+ boolean commandsSuccess = cmds.argsWereParsed();
if (commandsSuccess)
{
Console.info("Successfully completed commands");
if (headlessArg)
+ {
+ System.out.println("#### EXITING");
System.exit(0);
+ }
}
else
{
if (!Platform.isJS() && !headless && file == null
&& Cache.getDefault("SHOW_STARTUP_FILE", true)
- && !Commands.commandArgsProvided())
+ && !cmds.commandArgsProvided())
// don't open the startup file if command line args have been processed
// (&& !Commands.commandArgsProvided())
/**
public void quit()
{
// System.exit will run the shutdownHook first
+ System.out.println("Quitting now. Bye!");
System.exit(0);
}
{
Jalview.currentAlignFrame = currentAlignFrame;
}
+
+ protected Commands getCommands()
+ {
+ return cmds;
+ }
}