CINIT_FLAG_NO_DEFAULT_CONFIG_FILE);
common_init_finish(&g_ceph_context);
FOR_EACH_ARG(args) {
- if (CEPH_ARGPARSE_EQ("print", '\0')) {
+ if (CEPH_ARGPARSE_EQ("help", '\0')) {
+ usage();
+ } else if (CEPH_ARGPARSE_EQ("print", '\0')) {
CEPH_ARGPARSE_SET_ARG_VAL(&print, OPT_BOOL);
} else if (CEPH_ARGPARSE_EQ("create", '\0')) {
CEPH_ARGPARSE_SET_ARG_VAL(&create, OPT_BOOL);
-# TODO be user-friendly
$ monmaptool --help
- monmaptool: monmap file --help
- \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ [0-9a-f]{8,} can't open --help: error 2: No such file or directory (re)
- monmaptool: couldn't open --help: No such file or directory
- [255]
+ usage: [--print] [--create [--clobber]] [--add name 1.2.3.4:567] [--rm name] <mapfilename>
+ [1]