private static void updateOptionDescriptions() {
		Collection<Option> allOptions = options.getOptions();
		for (Option option : allOptions) {
			String key = option.getOpt();
			if (key == null) {
				key = option.getLongOpt();
			}
			if (key != null) {
				String description = I18n.getMessage(key);
				if (description != null) {
					if (key.equals(Opt.COWFILE.text)) {
						description = String.format(description, File.separatorChar);
					}
					option.setDescription(description);
				}
			}
		}
	}
private static void updateOptionDescriptions() {
		Collection<Option> allOptions = options.getOptions();
		for (Option option : allOptions) {
			String key = option.getOpt();
			if (key == null) {
				key = option.getLongOpt();
			}
			if (key != null) {
				String description = I18n.getMessage(key);
				if (description != null) {
					if (key.equals(Opt.COWFILE.text)) {
						description = String.format(description, File.separatorChar);
					}
					option.setDescription(description);
				}
			}
		}
	}
private static void updateOptionDescriptions ( ) { Collection < Option > allOptions = options . getOptions ( ) ; for ( Option option : allOptions ) { String key = option . getOpt ( ) ; if ( key == null ) { key = option . getLongOpt ( ) ; } if ( key != null ) { String description = I18n . getMessage ( key ) ; if ( description != null ) { if ( key . equals ( Opt . COWFILE . text ) ) { description = String . format ( description , File . separatorChar ) ; } option . setDescription ( description ) ; } } } }
Call to add options descriptions to the command line options.
This is deferred so that language / locale changes will be reflected.
Call to add options descriptions to the command line options . This is deferred so that language / locale changes will be reflected .