/** * Prompts the user for a yes or no answer to the specified question until they provide a valid * response (y/n/yes/no case insensitive) and reports the result. If yesNoPrompt is called in * non-interactive mode, an IllegalStateException is thrown. * * @param question The question to which a yes or no is expected in response. * @return <code>true</code> if the user answer yes, <code>false</code> if the user answered no. * @throws IOException if there is a problem reading from the terminal. */ protected final boolean yesNoPrompt(String question) throws IOException { return confirmationPrompt(question, YES_OR_NO_HINT, YES_PATTERN, NO_PATTERN); }
/** * Exit with a return code of FAILURE after printing the specified error message. * * @param message the error message to print before exiting. */ protected static void exitWithErrorMessage( final String message ) { throw new ToolError(message); }
/** @return a new parser for space-separated parameter maps. */ public static SpaceSeparatedMapParser create() { return new SpaceSeparatedMapParser(); }
/** * Program entry point. * * @param args The command-line arguments. * @throws Exception If there is an error. */ public static void main(String[] args) throws Exception { System.exit(new FijiToolLauncher().run(new ScanTool(), args)); } }
/** * Program entry point. * * @param args The command-line arguments. * @throws Exception If there is an error. */ public static void main(String[] args) throws Exception { System.exit(new FijiToolLauncher().run(new LsTool(), args)); } }
/** * Program entry point. * * @param args The command-line arguments. * @throws Exception If there is an error. */ public static void main(String[] args) throws Exception { System.exit(new FijiToolLauncher().run(new VersionTool(), args)); } }
/** * Program entry point. * * @param args The command-line arguments. * @throws Exception If there is an error. */ public static void main(String[] args) throws Exception { System.exit(new FijiToolLauncher().run(new SynthesizeUserDataTool(), args)); } }
/** * Program entry point. * * @param args The command-line arguments. * @throws Exception If there is an error. */ public static void main(String[] args) throws Exception { System.exit(new FijiToolLauncher().run(new UninstallTool(), args)); } }
/** * Program entry point. * * @param args The command-line arguments. * @throws Exception If there is an error. */ public static void main(String[] args) throws Exception { System.exit(new FijiToolLauncher().run(new InstallTool(), args)); } }
/** * Program entry point. * * @param args The command-line arguments. * @throws Exception If there is an error. */ public static void main(String[] args) throws Exception { System.exit(new FijiToolLauncher().run(new MetadataTool(), args)); } }
/** * Program entry point. * * @param args The command-line arguments. * @throws Exception If there is an error. */ public static void main(String[] args) throws Exception { System.exit(new FijiToolLauncher().run(new GetTool(), args)); } }
/** * Program entry point. * * @param args The command-line arguments. * @throws Exception If there is an error. */ public static void main(String[] args) throws Exception { System.exit(new FijiToolLauncher().run(new LayoutTool(), args)); } }
/** * Program entry point. * * @param args The command-line arguments. * @throws Exception If there is an error. */ public static void main(String[] args) throws Exception { System.exit(new FijiToolLauncher().run(new DeleteTool(), args)); } }
/** * Program entry point. * * @param args The command-line arguments. * @throws Exception If there is an error. */ public static void main(String[] args) throws Exception { System.exit(new FijiToolLauncher().run(new IncrementTool(), args)); } }
/** * Program entry point. * * @param args The command-line arguments. * @throws Exception If there is an error. */ public static void main(String[] args) throws Exception { System.exit(new FijiToolLauncher().run(new PutTool(), args)); } }
/** * Program entry point. * * @param args The command-line arguments. * @throws Exception If there is an error. */ public static void main(String[] args) throws Exception { System.exit(new FijiToolLauncher().run(new CreateTableTool(), args)); } }
/** * Program entry point. * * @param args The command-line arguments. * @throws Exception If there is an error. */ public static void main(String[] args) throws Exception { System.exit(new FijiToolLauncher().run(new FlushTableTool(), args)); } }
/** * Pretty print a tool error. * * @param toolError ToolError to pretty print. */ private void prettyPrintUserInputError( final ToolError toolError ) { if (mDebugFlag) { toolError.printStackTrace(getPrintStream()); } else { getPrintStream().println(toolError.getErrorMessage()); } }