1 26 27 package org.objectweb.util.cmdline.lib; 28 29 37 38 public class DefaultOptionHelp 39 extends DefaultOptionBase 40 { 41 47 53 54 public 55 DefaultOptionHelp() 56 { 57 super(new String [] { "-h", "--help"}, 58 new String [0], 59 "Display this information and exit"); 60 } 61 62 68 74 81 public void 82 consume(org.objectweb.util.cmdline.api.Iterator iterator) 83 { 84 iterator.getCommandLine().print( 85 iterator.getCommandLine().getConsole().getOutputStream()); 86 System.exit(0); 87 } 88 89 } 95 | Popular Tags |