17850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com/* 27850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * Copyright (C) 2010 The Android Open Source Project 37850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * 47850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * Licensed under the Apache License, Version 2.0 (the "License"); 57850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * you may not use this file except in compliance with the License. 67850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * You may obtain a copy of the License at 77850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * 87850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * http://www.apache.org/licenses/LICENSE-2.0 97850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * 107850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * Unless required by applicable law or agreed to in writing, software 117850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * distributed under the License is distributed on an "AS IS" BASIS, 127850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 137850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * See the License for the specific language governing permissions and 147850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * limitations under the License. 157850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com */ 167850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com 177850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.compackage vogar; 187850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com 197850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.comimport java.lang.annotation.ElementType; 207850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.comimport java.lang.annotation.Retention; 217850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.comimport java.lang.annotation.RetentionPolicy; 227850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.comimport java.lang.annotation.Target; 237850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com 247850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com/** 257850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * Annotates a field as representing a command-line option for OptionParser. 267850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com */ 277850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com@Retention(RetentionPolicy.RUNTIME) 287850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com@Target(ElementType.FIELD) 297850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.compublic @interface Option { 307850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com /** 317850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * The names for this option, such as { "-h", "--help" }. 327850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * Names must start with one or two '-'s. 337850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * An option must have at least one name. 347850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com */ 357850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com String[] names(); 367850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com} 37