question: private static void exit ( @ Nullable String errMsg , boolean showUsage , int exitCode ) { if ( errMsg != null ) X . error ( errMsg ) ; String runner = System . getProperty ( IGNITE_PROG_NAME , "ignite.{sh|bat}" ) ; int space = runner . indexOf ( ' ' ) ; runner = runner . substring ( 0 , space == - 1 ? runner . length ( ) : space ) ; if ( showUsage ) { boolean ignite = runner . contains ( "ignite." ) ; X . error ( "Usage:" , "    " + runner + ( ignite ? " [?]|[path {-v}{-np}]|[-i]" : " [?]|[-v]" ) , "    Where:" , "    ?, /help, -help, - show this message." , "    -v               - verbose mode (quiet by default)." , "    -np              - no pause on exit (pause by default)" , "    -nojmx           - disable JMX monitoring (enabled by default)" ) ; if ( ignite ) { X . error ( "    -i              - interactive mode (choose configuration file from list)." , "    path            - path to Spring XML configuration file." , "                      Path can be absolute or relative to IGNITE_HOME." , " " , "Spring file should contain one bean definition of Java type" , "'org.apache.ignite.configuration.IgniteConfiguration'. Note that bean will be" , "fetched by the type and its ID is not used." ) ; } } System . exit ( exitCode ) ; }
target:  Exists with optional error message, usage show and exit code.