{
  "name": "arch",
  "description": "Print architecture type or run select architecture",
  "parserDirectives": {
    "flagsArePosixNoncompliant": true,
    "optionsMustPrecedeArgs": true
  },
  "options": [
    {
      "names": [
        "-32"
      ],
      "description": "Add the native 32-bit architecture to the list of architectures"
    },
    {
      "names": [
        "-64"
      ],
      "description": "Add the native 64-bit architecture to the list of architectures"
    },
    {
      "names": [
        "-arch"
      ],
      "isRepeatable": -1,
      "exclusiveOn": [
        "-i386",
        "-x86_64",
        "-x86_64h",
        "-arm64",
        "-arm64e"
      ],
      "args": [
        {
          "name": "arch_name",
          "suggestions": [
            "i386",
            "x86_64",
            "x86_64h",
            "arm64",
            "arm64e"
          ]
        }
      ]
    },
    {
      "names": [
        "-i386"
      ],
      "description": "32-bit intel",
      "isRepeatable": -1,
      "exclusiveOn": [
        "-arch"
      ]
    },
    {
      "names": [
        "-x86_64"
      ],
      "description": "64-bit intel",
      "isRepeatable": -1,
      "exclusiveOn": [
        "-arch"
      ]
    },
    {
      "names": [
        "-x86_64h"
      ],
      "description": "64-bit intel (haswell)",
      "isRepeatable": -1,
      "exclusiveOn": [
        "-arch"
      ]
    },
    {
      "names": [
        "-arm64"
      ],
      "description": "64-bit arm",
      "isRepeatable": -1,
      "exclusiveOn": [
        "-arch"
      ]
    },
    {
      "names": [
        "-arm64e"
      ],
      "description": "64-bit arm (Apple Silicon)",
      "isRepeatable": -1,
      "exclusiveOn": [
        "-arch"
      ]
    },
    {
      "names": [
        "-c"
      ],
      "description": "Clear the environment that will be passed to the command"
    },
    {
      "names": [
        "-d"
      ],
      "description": "Delete the named environment variable from the command's environment",
      "isRepeatable": -1,
      "args": [
        {
          "name": "envname"
        }
      ]
    },
    {
      "names": [
        "-e"
      ],
      "description": "Assign the given value to the variable in the command's environment",
      "isRepeatable": -1,
      "args": [
        {
          "name": "envname=value"
        }
      ]
    },
    {
      "names": [
        "-h"
      ],
      "description": "Print a help message and exit"
    }
  ],
  "args": [
    {
      "name": "program",
      "isVariadic": true,
      "isCommand": true,
      "template": "filepaths"
    }
  ]
}
