{
  "name": "tree",
  "description": "Display directories as trees (with optional color/HTML output)",
  "options": [
    {
      "names": [
        "-a"
      ],
      "description": "All files are listed"
    },
    {
      "names": [
        "-d"
      ],
      "description": "List directories only"
    },
    {
      "names": [
        "-l"
      ],
      "description": "Follow symbolic links like directories"
    },
    {
      "names": [
        "-f"
      ],
      "description": "Print the full path prefix for each file"
    },
    {
      "names": [
        "-x"
      ],
      "description": "Stay on current filesystem only"
    },
    {
      "names": [
        "-L"
      ],
      "description": "Descend only level directories deep",
      "takes_arg": true,
      "arg": {
        "name": "level"
      }
    },
    {
      "names": [
        "-R"
      ],
      "description": "Rerun tree when max dir level reached"
    },
    {
      "names": [
        "-P"
      ],
      "description": "List only those files that match the pattern given",
      "takes_arg": true,
      "arg": {
        "name": "pattern"
      }
    },
    {
      "names": [
        "-I"
      ],
      "description": "Do not list files that match the given pattern",
      "takes_arg": true,
      "arg": {
        "name": "pattern"
      }
    },
    {
      "names": [
        "--ignore-case"
      ],
      "description": "Ignore case when pattern matching"
    },
    {
      "names": [
        "--matchdirs"
      ],
      "description": "Include directory names in -P pattern matching"
    },
    {
      "names": [
        "--noreport"
      ],
      "description": "Turn off file/directory count at end of tree listing"
    },
    {
      "names": [
        "--charset"
      ],
      "description": "Use charset X for terminal/HTML and indentation line output",
      "takes_arg": true,
      "arg": {
        "name": "charset"
      }
    },
    {
      "names": [
        "--filelimit"
      ],
      "description": "Do not descend dirs with more than # files in them",
      "takes_arg": true,
      "arg": {
        "name": "number",
        "description": "Number of files"
      }
    },
    {
      "names": [
        "--timefmt"
      ],
      "description": "Print and format time according to the format <f>",
      "takes_arg": true,
      "arg": {
        "name": "format",
        "description": "Format in strftime syntax"
      }
    },
    {
      "names": [
        "-o"
      ],
      "description": "Output to file instead of stdout",
      "takes_arg": true,
      "arg": {
        "name": "filename"
      }
    },
    {
      "names": [
        "-q"
      ],
      "description": "Print non-printable characters as '?'"
    },
    {
      "names": [
        "-N"
      ],
      "description": "Print non-printable characters as is"
    },
    {
      "names": [
        "-Q"
      ],
      "description": "Quote filenames with double quotes"
    },
    {
      "names": [
        "-p"
      ],
      "description": "Print the protections for each file"
    },
    {
      "names": [
        "-u"
      ],
      "description": "Displays file owner or UID number"
    },
    {
      "names": [
        "-g"
      ],
      "description": "Displays file group owner or GID number"
    },
    {
      "names": [
        "-s"
      ],
      "description": "Print the size in bytes of each file"
    },
    {
      "names": [
        "-h"
      ],
      "description": "Print the size in a more human readable way"
    },
    {
      "names": [
        "--si"
      ],
      "description": "Like -h but use SI units (powers of 1000) instead"
    },
    {
      "names": [
        "--du"
      ],
      "description": "For each directory report its size as the accumulation of sizes of all its files and sub-directories (and their files, and so on). The total amount of used space is also given in the final report (lik"
    },
    {
      "names": [
        "-D"
      ],
      "description": "Print the date of the last modification time or if -c is used, the last status change time for the file listed"
    },
    {
      "names": [
        "-F"
      ],
      "description": "Appends '/', '=', '*', '@', '|' or '>' as per ls -F"
    },
    {
      "names": [
        "--inodes"
      ],
      "description": "Print inode number of each file"
    },
    {
      "names": [
        "--device"
      ],
      "description": "Print device ID number to which each file belongs"
    },
    {
      "names": [
        "-v"
      ],
      "description": "Sort files alphanumerically by version"
    },
    {
      "names": [
        "-t"
      ],
      "description": "Sort files by last modification time"
    },
    {
      "names": [
        "-c"
      ],
      "description": "Sort files by last status change time"
    },
    {
      "names": [
        "-U"
      ],
      "description": "Leave files unsorted"
    },
    {
      "names": [
        "-r"
      ],
      "description": "Reverse the order of the sort"
    },
    {
      "names": [
        "--dirsfirst"
      ],
      "description": "List directories before files (-U disables)"
    },
    {
      "names": [
        "--sort"
      ],
      "description": "Select sort",
      "takes_arg": true,
      "arg": {
        "name": "type",
        "suggestions": [
          "name",
          "version",
          "size",
          "mtime",
          "ctime"
        ]
      }
    },
    {
      "names": [
        "-i"
      ],
      "description": "Don't print indentation lines"
    },
    {
      "names": [
        "-A"
      ],
      "description": "Print ANSI lines graphic indentation lines"
    },
    {
      "names": [
        "-S"
      ],
      "description": "Print with CP437 (console) graphics indentation lines"
    },
    {
      "names": [
        "-n"
      ],
      "description": "Turn colorization off always (-C overrides)"
    },
    {
      "names": [
        "-C"
      ],
      "description": "Turn colorization on always"
    },
    {
      "names": [
        "-X"
      ],
      "description": "Prints out an XML representation of the tree"
    },
    {
      "names": [
        "-J"
      ],
      "description": "Prints out an JSON representation of the tree"
    },
    {
      "names": [
        "-H"
      ],
      "description": "Prints out HTML format with baseHREF as top directory",
      "takes_arg": true,
      "arg": {
        "name": "baseHREF"
      }
    },
    {
      "names": [
        "-T"
      ],
      "description": "Replace the default HTML title and H1 header with string",
      "takes_arg": true,
      "arg": {
        "name": "title"
      }
    },
    {
      "names": [
        "--nolinks"
      ],
      "description": "Turn off hyperlinks in HTML output"
    },
    {
      "names": [
        "--fromfile"
      ],
      "description": "Reads paths from files"
    },
    {
      "names": [
        "--version"
      ],
      "description": "Print version and exit"
    },
    {
      "names": [
        "--help"
      ],
      "description": "Print usage and this help message and exit"
    },
    {
      "names": [
        "--"
      ],
      "description": "Options processing terminator"
    }
  ],
  "args": [
    {
      "template": "folders"
    }
  ]
}
