1 20 package org.objectweb.modfact.jmi.service.cmdline.common; 21 22 import org.objectweb.util.cmdline.lib.DefaultOptionBase; 23 24 27 public class OptionQuiet extends DefaultOptionBase { 28 29 32 protected ModfactApplicationBase application_; 33 34 38 public OptionQuiet(ModfactApplicationBase application) { 39 super(); 41 setLabels(new String [] { "-quiet" }); 42 setDescription(new String [] { "Silent mode." }); 43 setMandatory(false); 44 45 application_ = application; 47 } 48 49 53 57 public void consume(org.objectweb.util.cmdline.api.Iterator iterator) { 58 org.objectweb.modfact.jmi.logging.ModFactLogger.setQuiet(true); 59 } 60 61 } 62 | Popular Tags |