]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw-admin: dump command if not found
authorYehuda Sadeh <yehuda@redhat.com>
Mon, 2 Dec 2019 22:51:45 +0000 (14:51 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 28 Jan 2020 18:20:35 +0000 (10:20 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_admin.cc

index 1dc2fa9d507d35b8b59625bdab55f4778c4d3371..e1f56d82d0412cf89cdeb0690a5d4175375b6ecb 100644 (file)
@@ -3056,6 +3056,12 @@ int main(int argc, const char **argv)
           }
           cerr << "  " << exp << std::endl;
         }
+      } else {
+        cerr << "Command not found:";
+        for (auto& arg : args) {
+          cerr << " " << arg;
+        }
+        cerr << std::endl;
       }
       exit(1);
     }