{
  "name": "basename",
  "description": "Return filename portion of pathname",
  "options": [
    {
      "names": [
        "-a"
      ],
      "description": "Treat every argument as a string"
    },
    {
      "names": [
        "-s"
      ],
      "description": "Suffix to remove from string",
      "takes_arg": true,
      "arg": {
        "name": "suffix"
      }
    }
  ],
  "args": [
    {
      "name": "string",
      "description": "String to operate on (typically filenames)",
      "is_variadic": true,
      "template": "filepaths"
    }
  ]
}
