Bonjour

Bizuth en Java, j'ai de mal a comprendre comment corriger ce warning.
"The static method hasArg() from the type OptionBuilder should be accessed in a static way"
lors de l'ajout d'un objet option à une collection (lib Apache commons CLI)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
		Option propfile = OptionBuilder.withLongOpt("propfile")
				.withDescription("Fichier properties de ce programme")
				.withArgName("prop file")
				.hasArg()
				.create("p");
		opts.addOption(propfile);
Nom : Warning_StaticWay.png
Affichages : 390
Taille : 10,4 Ko