Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7f659e8 authored by Christopher Tate's avatar Christopher Tate Committed by Android (Google) Code Review
Browse files

Merge "Fail gracefully if the user fails to supply necessary args to bmgr" into kraken

parents 457d5ae3 7e76ff1c
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -175,6 +175,11 @@ public final class Bmgr {
    private void doTransport() {
        try {
            String which = nextArg();
            if (which == null) {
                showUsage();
                return;
            }

            String old = mBmgr.selectBackupTransport(which);
            if (old == null) {
                System.out.println("Unknown transport '" + which
@@ -318,6 +323,11 @@ public final class Bmgr {

    private void doRestore() {
        String arg = nextArg();
        if (arg == null) {
            showUsage();
            return;
        }

        if (arg.indexOf('.') >= 0) {
            // it's a package name
            doRestorePackage(arg);