]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: allow seastar application to print its helps
authorYingxin Cheng <yingxin.cheng@intel.com>
Fri, 24 Dec 2021 08:14:29 +0000 (16:14 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Mon, 27 Dec 2021 11:07:30 +0000 (19:07 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/osd/main.cc

index d3eab632bda749ebe0d3cb6802152087f6c22adc..72f46d8cafd16380983c5285e2baa579434af7ef 100644 (file)
@@ -215,10 +215,9 @@ int main(int argc, char* argv[])
      "Prometheus metrics prefix");
 
   auto [ceph_args, app_args] = partition_args(app, argv, argv + argc);
-  if (ceph_argparse_need_usage(ceph_args) &&
-      std::find(app_args.begin(), app_args.end(), "--help") == app_args.end()) {
+  if (ceph_argparse_need_usage(ceph_args) ||
+      ceph_argparse_need_usage(app_args)) {
     usage(argv[0]);
-    return EXIT_SUCCESS;
   }
   override_seastar_opts(app_args);
   std::string cluster_name{"ceph"};