]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cauthtool: --caps fn alone is a command
authorSage Weil <sage@newdream.net>
Mon, 22 Feb 2010 20:23:42 +0000 (12:23 -0800)
committerSage Weil <sage@newdream.net>
Tue, 23 Feb 2010 00:00:48 +0000 (16:00 -0800)
src/cauthtool.cc

index 6458e6c206418dcf9c0f1ed53e89c513cac3dad9..2f88816366458089c1cd1cd3ab008134b24bb321 100644 (file)
@@ -165,12 +165,11 @@ int main(int argc, const char **argv)
       cerr << "can't open " << import_keyring << ": " << strerror(-r) << std::endl;
       exit(1);
     }
-  } else {
+  } else if (!caps_fn) {
     cerr << "no command specified" << std::endl;
     usage();
   }
 
-
   if (caps_fn) {
     ConfFile *cf = new ConfFile(caps_fn);
     if (!cf->parse()) {