public static SettingsInsert get(Map<String, String[]> clArgs)
    {
        String[] params = clArgs.remove("-insert");
        if (params == null)
            return new SettingsInsert(new InsertOptions());

        InsertOptions options = GroupedOptions.select(params, new InsertOptions());
        if (options == null)
        {
            printHelp();
            System.out.println("Invalid -insert options provided, see output for valid options");
            System.exit(1);
        }
        return new SettingsInsert(options);
    }
public static SettingsInsert get ( Map < String , String [ ] > clArgs ) { String [ ] params = clArgs . remove ( "-insert" ) ; if ( params == null ) return new SettingsInsert ( new InsertOptions ( ) ) ; InsertOptions options = GroupedOptions . select ( params , new InsertOptions ( ) ) ; if ( options == null ) { printHelp ( ) ; System . out . println ( "Invalid -insert options provided, see output for valid options" ) ; System . exit ( 1 ) ; } return new SettingsInsert ( options ) ; }
CLI Utility Methods