Bug 1043112

Bug 1043112 - Add init.rc command file to turn on core dumps.
Make your earlier if-cases exit early and move this out of them.

Overall:

void
usage()
{
  printf("usage: ...");
}

if (argc < 2) {
  usage()
  return 0;
}

if (strcmp(argv[1], "core") == 0) {
  if (argc != 5) {
    usage();
    return -2; // or something
  }
  ...
}
if (strcmp(argv[1], "some-other-limit-setting) == 0) {
  if (argc != some_other_limit_setting_argument_count) {
    usage();
    return -2; // or something
  }
  ...
}

printf("%s: %s resource unsupported...\n", argv[0], argv[1]);
return -1; // or something