for (std::vector<const char*>::iterator i = args.begin()+1; i != args.end(); ) {
if (ceph_argparse_double_dash(args, i))
break;
- else if (ceph_argparse_witharg(args, i, &val, "-f", "--format", (char*)NULL))
+ else if (ceph_argparse_witharg_daemon(args, i, &val, "-f", "--format",
+ (char*)NULL))
format = val;
else if (!epoch) {
long l = parse_pos_long(*i++, &ss);
for (std::vector<const char*>::iterator i = args.begin()+1; i != args.end(); ) {
if (ceph_argparse_double_dash(args, i))
break;
- else if (ceph_argparse_witharg(args, i, &val, "-f", "--format", (char*)NULL))
+ else if (ceph_argparse_witharg_daemon(args, i, &val, "-f", "--format",
+ (char*)NULL))
format = val;
else if (!epoch) {
long l = parse_pos_long(*i++, &ss);
for (std::vector<const char*>::iterator i = args.begin()+1; i != args.end(); ) {
if (ceph_argparse_double_dash(args, i))
break;
- else if (ceph_argparse_witharg(args, i, &val, "-f", "--format", (char*)NULL))
+ else if (ceph_argparse_witharg_daemon(args, i, &val, "-f", "--format",
+ (char*)NULL))
format = val;
else if (!epoch) {
long l = parse_pos_long(*i++, &ss);
for (std::vector<const char*>::iterator i = args.begin()+1; i != args.end(); ) {
if (ceph_argparse_double_dash(args, i)) {
break;
- } else if (ceph_argparse_witharg(args, i, &val, "-f", "--format", (char*)NULL)) {
+ } else if (ceph_argparse_witharg_daemon(args, i, &val, "-f",
+ "--format", (char*)NULL)) {
format = val;
} else {
what = *i++;
i != args.end(); ) {
if (ceph_argparse_double_dash(args, i)) {
break;
- } else if (ceph_argparse_witharg(args, i, &val,
+ } else if (ceph_argparse_witharg_daemon(args, i, &val,
"-f", "--format", (char*)NULL)) {
if (val != "json" && val != "plain") {
ss << "format must be json or plain";
return -EINVAL;
}
format = val;
- } else if (ceph_argparse_withint(args, i, &seconds, &err,
+ } else if (ceph_argparse_withint_daemon(args, i, &seconds, &err,
"-t", "--threshold", (char*)NULL)) {
if (!err.str().empty()) {
ss << err.str();