private static void printInfo()

in src/main/java/com/epam/fonda/utils/ConfigurationUtils.java [122:136]


    private static void printInfo(final CommandLine commandLine, final Options options, final HelpFormatter formatter)
            throws IOException {

        if (commandLine.hasOption(OptionName.DETAIL.getName())) {
            final String details =
                    Files.lines(Paths.get(getFile(PATH_TO_FONDA_DETAILS).getAbsolutePath())).collect(joining("\n"));
            log.info(details);
            System.exit(1);
        } else if (commandLine.hasOption(OptionName.HELP.getName())
                || !(commandLine.hasOption(OptionName.STUDY_CONFIG.getName())
                && commandLine.hasOption(OptionName.GLOBAL_CONFIG.getName()))) {
            formatter.printHelp(MessageConstant.HEADER, MessageConstant.VERSION_MESSAGE, options, "");
            System.exit(1);
        }
    }