}
else if (ceph_argparse_witharg(args, i, &val, "--name", "-n", (char*)NULL)) {
if (!iparams.name.from_str(val)) {
- cerr << "You must pass a string of the form TYPE.ID to "
- << "the --name option. Valid types are: "
- << EntityName::get_valid_types_as_str() << std::endl;
+ cerr << "error parsing '" << val << "': expected string of the form TYPE.ID, "
+ << "valid types are: " << EntityName::get_valid_types_as_str()
+ << std::endl;
_exit(1);
}
}
[1]
$ ceph-conf -c test.conf --name total.garbage
- You must pass a string of the form TYPE.ID to the --name option. Valid types are: auth, mon, osd, mds, client
+ error parsing 'total.garbage': expected string of the form TYPE.ID, valid types are: auth, mon, osd, mds, client
[1]
$ ceph-conf -c test.conf -s bar
$ ceph --name=foo
- You must pass a string of the form TYPE.ID to the --name option. Valid types are: auth, mon, osd, mds, client
+ error parsing 'foo': expected string of the form TYPE.ID, valid types are: auth, mon, osd, mds, client
[1]