- if (!rc) {
- fprintf(stderr,"Unknown command '%s'\n",argv[0]);
- return 1;
- }
-
- if ((rc->arity > 0 && argc != rc->arity) ||
- (rc->arity < 0 && argc < -rc->arity)) {
- fprintf(stderr,"Wrong number of arguments for '%s'\n",rc->name);
- return 1;
- }
- if (!strcasecmp(rc->name,"monitor")) config.monitor_mode = 1;
- if (!strcasecmp(rc->name,"subscribe") ||
- !strcasecmp(rc->name,"psubscribe")) config.pubsub_mode = 1;
+ config.raw_output = !strcasecmp(command,"info");
+ if (!strcasecmp(command,"shutdown")) config.shutdown = 1;
+ if (!strcasecmp(command,"monitor")) config.monitor_mode = 1;
+ if (!strcasecmp(command,"subscribe") ||
+ !strcasecmp(command,"psubscribe")) config.pubsub_mode = 1;