Class CliTool

    • Constructor Detail

      • CliTool

        public CliTool()
    • Method Detail

      • setCallSystemExit

        public void setCallSystemExit​(boolean flag)
        Call System.exit(int) at the end of command processing.
        Parameters:
        flag - Call System.exit(int) if true.
      • main

        protected static void main​(String[] args,
                                   CliTool... commands)
        Parse and execute one of the commands.
        Parameters:
        args - Command line arguments (command and options).
        commands - A list of commands.
      • main

        protected static void main​(String[] args,
                                   CliTool command)
        Parse and execute a single command.
        Parameters:
        args - Command line arguments (command and options).
        command - The command to execute.
      • printf

        protected static void printf​(String msg,
                                     Object... args)
      • checkNotNull

        protected static <T> T checkNotNull​(T arg)