Changed "required only" flag name. (FELIX-3118)


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1173296 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/gogo/command/src/main/java/org/apache/felix/gogo/command/OBR.java b/gogo/command/src/main/java/org/apache/felix/gogo/command/OBR.java
index debd419..0bd88b2 100644
--- a/gogo/command/src/main/java/org/apache/felix/gogo/command/OBR.java
+++ b/gogo/command/src/main/java/org/apache/felix/gogo/command/OBR.java
@@ -296,8 +296,8 @@
         @Parameter(names={ "-s", "--start" }, presentValue="true",
             absentValue="false") boolean start,
         @Descriptor("deploy required bundles only")
-        @Parameter(names={ "-r", "--required" }, presentValue="true",
-            absentValue="false") boolean required,
+        @Parameter(names={ "-ro", "--required-only" }, presentValue="true",
+            absentValue="false") boolean requiredOnly,
         @Descriptor("( <bundle-name> | <symbolic-name> | <bundle-id> )[@<version>] ...")
             String[] args)
         throws IOException, InvalidSyntaxException
@@ -357,7 +357,7 @@
                             + " (" + resources[resIdx].getVersion() + ")");
                     }
                 }
-                if (!required)
+                if (!requiredOnly)
                 {
                     resources = resolver.getOptionalResources();
                     if ((resources != null) && (resources.length > 0))
@@ -380,7 +380,7 @@
                     {
                         options |= Resolver.START;
                     }
-                    if (required)
+                    if (requiredOnly)
                     {
                         options |= Resolver.NO_OPTIONAL_RESOURCES;
                     }