OSDN Git Service

Change flag from -includekeyvalue to -keyvalue/-nokeyvalue
authorJohan Toras Halseth <johanth@google.com>
Wed, 5 Apr 2017 19:37:52 +0000 (20:37 +0100)
committerJohan Toras Halseth <johanth@google.com>
Wed, 5 Apr 2017 19:45:32 +0000 (20:45 +0100)
The original flag was added in ag/1946677. As pointed out
in ag/2065837 we ought to stick to the syntax used for
other flags.

Test: adb backup -keyvalue -all
Change-Id: Ie2c7ee3d85740abadaa4119d23470cd9470bd981

cmds/bu/src/com/android/commands/bu/Backup.java

index db17b28..ce114fd 100644 (file)
@@ -101,8 +101,10 @@ public final class Backup {
                     doCompress = true;
                 } else if ("-nocompress".equals(arg)) {
                     doCompress = false;
-                } else if ("-includekeyvalue".equals(arg)) {
+                } else if ("-keyvalue".equals(arg)) {
                     doKeyValue = true;
+                } else if ("-nokeyvalue".equals(arg)) {
+                    doKeyValue = false;
                 } else {
                     Log.w(TAG, "Unknown backup flag " + arg);
                     continue;