Examples of usageOrVersionDisplayed()


Examples of org.nasutekds.server.util.args.ArgumentParser.usageOrVersionDisplayed()

      }
      System.exit(ReturnCode.PRINT_VERSION.getReturnCode());
    }
    else if (shouldPrintUsage()) {
      ArgumentParser parser = getArgumentParser();
      if (parser == null || !parser.usageOrVersionDisplayed()) {
        printUsage(false);
      }
      System.exit(ReturnCode.SUCCESSFUL.getReturnCode());
    } else if (isCli()) {
      CliApplication cliApp = createCliApplication();
View Full Code Here

Examples of org.nasutekds.server.util.args.ArgumentParser.usageOrVersionDisplayed()

      return CLIENT_SIDE_PARAM_ERROR;
    }

    // If we should just display usage or version information,
    // then print it and exit.
    if (argParser.usageOrVersionDisplayed())
    {
      return 0;
    }

    if(bindPassword.isPresent() && bindPasswordFile.isPresent())
View Full Code Here

Examples of org.nasutekds.server.util.args.ArgumentParser.usageOrVersionDisplayed()

    }


    // If the usage or version argument was provided,
    // then we don't need to do anything else.
    if (argParser.usageOrVersionDisplayed())
    {
      return 0;
    }

View Full Code Here

Examples of org.nasutekds.server.util.args.ArgumentParser.usageOrVersionDisplayed()

    }


    // If we should just display usage or version information,
    // then print it and exit.
    if (argParser.usageOrVersionDisplayed())
    {
      return 0;
    }

    if (doCheckSchema.isPresent() && !configFile.isPresent())
View Full Code Here

Examples of org.nasutekds.server.util.args.ArgumentParser.usageOrVersionDisplayed()

    }


    // If we should just display usage or version information,
    // then print it and exit.
    if (argParser.usageOrVersionDisplayed())
    {
      return EXIT_CODE_SUCCESS;
    }

View Full Code Here

Examples of org.nasutekds.server.util.args.ArgumentParser.usageOrVersionDisplayed()

      //   exit code of NOTHING_TO_DO (0).  Otherwise, it will have an exit code
      //   that is something other than NOTHING_TO_DO, SERVER_ALREADY_STARTED,
      //   START_AS_DETACH, START_AS_NON_DETACH, START_AS_WINDOWS_SERVICE,
      //   START_AS_DETACH_QUIET, START_AS_NON_DETACH_QUIET to indicate that a
      //   problem occurred.
      if (argParser.usageOrVersionDisplayed())
      {
        // We're just trying to display usage, and that's already been done so
        // exit with a code of zero.
        System.exit(NOTHING_TO_DO);
      }
View Full Code Here

Examples of org.nasutekds.server.util.args.ArgumentParser.usageOrVersionDisplayed()

      else
      {
        System.exit(checkStartability(argParser));
      }
    }
    else if (argParser.usageOrVersionDisplayed())
    {
      System.exit(0);
    }
    else if (fullVersion.isPresent())
    {
View Full Code Here

Examples of org.nasutekds.server.util.args.ArgumentParser.usageOrVersionDisplayed()

    }


    // If we should just display usage or version information,
    // then print it and exit.
    if (argParser.usageOrVersionDisplayed())
    {
      return 0;
    }

View Full Code Here

Examples of org.nasutekds.server.util.args.ArgumentParser.usageOrVersionDisplayed()

      return CLIENT_SIDE_PARAM_ERROR;
    }

    // If we should just display usage or version information,
    // then print it and exit.
    if (argParser.usageOrVersionDisplayed())
    {
      return 0;
    }

    if(bindPassword.isPresent() && bindPasswordFile.isPresent())
View Full Code Here

Examples of org.nasutekds.server.util.args.ArgumentParser.usageOrVersionDisplayed()

    }


    // If we should just display usage or version information,
    // then we've already done it so just return without doing anything else.
    if (argParser.usageOrVersionDisplayed())
    {
      return 0;
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.