public static boolean isHelpFlagSet(CommandLine cmd){
  return cmd.hasOption("help");
}

public static boolean isHelpFlagSet ( CommandLine cmd ) { return cmd . hasOption ( "help" ) ; }
check if help flag is set by user .
