Add some basic support for descriptive info; this will likely need to
be improved in the future, but I need something for the next framework
release. (FELIX-2042)


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@941487 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/gogo/runtime/src/main/java/org/osgi/service/command/Descriptor.java b/gogo/runtime/src/main/java/org/osgi/service/command/Descriptor.java
new file mode 100644
index 0000000..a2ad8f5
--- /dev/null
+++ b/gogo/runtime/src/main/java/org/osgi/service/command/Descriptor.java
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.osgi.service.command;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER})
+public @interface Descriptor
+{
+    String description();
+}
\ No newline at end of file
diff --git a/gogo/runtime/src/main/java/org/osgi/service/command/Flag.java b/gogo/runtime/src/main/java/org/osgi/service/command/Flag.java
index 905e906..e08b69f 100644
--- a/gogo/runtime/src/main/java/org/osgi/service/command/Flag.java
+++ b/gogo/runtime/src/main/java/org/osgi/service/command/Flag.java
@@ -28,4 +28,5 @@
 public @interface Flag
 {
     String name();
+    String description() default "";
 }
\ No newline at end of file
diff --git a/gogo/runtime/src/main/java/org/osgi/service/command/Option.java b/gogo/runtime/src/main/java/org/osgi/service/command/Option.java
index 985c6fa..5ae44b7 100644
--- a/gogo/runtime/src/main/java/org/osgi/service/command/Option.java
+++ b/gogo/runtime/src/main/java/org/osgi/service/command/Option.java
@@ -28,5 +28,6 @@
 public @interface Option
 {
     String name();
+    String description() default "";
     String dflt();
-}
+}
\ No newline at end of file