{
    "mode": "man",
    "parameter": "rdoc",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/rdoc/1/json",
    "generated": "2026-06-15T16:39:34Z",
    "synopsis": "rdoc3.0 [options]  [names...]",
    "sections": {
        "NAME": {
            "content": "rdoc3.0 - Generate documentation from Ruby script files\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "rdoc3.0 [options]  [names...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Files  are parsed, and the information they contain collected, before any output is produced.\nThis allows cross references between all files to be resolved. If a name is a  directory,  it\nis  traversed. If no names are specified, all Ruby files in the current directory (and subdi‐\nrectories) are processed.\n\nAvailable output formatters: chm, html, ri, xml\n\nFor information on where the output goes, use:\nrdoc --help-output\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "--accessor, -A  accessorname[,..]",
                    "content": "comma separated  list  of  additional  class  methods  that  should  be  treated  like\n'attrreader'  and friends. Option may be repeated. Each accessorname may have '=text'\nappended, in which case that text appears where the r/w/rw appears for  normal  acces‐\nsors.\n",
                    "flag": "-A",
                    "long": "--accessor"
                },
                {
                    "name": "--all, -a",
                    "content": "include all methods (not just public) in the output.\n",
                    "flag": "-a",
                    "long": "--all"
                },
                {
                    "name": "--charset, -c  charset",
                    "content": "specifies HTML character-set\n",
                    "flag": "-c",
                    "long": "--charset"
                },
                {
                    "name": "--debug, -D",
                    "content": "displays lots on internal stuff\n",
                    "flag": "-D",
                    "long": "--debug"
                },
                {
                    "name": "--diagram, -d",
                    "content": "generate  diagrams  showing  modules and classes.  You need dot V1.8.6 or later to use\nthe  --diagram  option  correctly.   Dot   is   available   from   <URL:http://www.re‐\nsearch.att.com/sw/tools/graphviz/>.\n",
                    "flag": "-d",
                    "long": "--diagram"
                },
                {
                    "name": "--exclude, -x  pattern",
                    "content": "do  not  process  files or directories matching pattern. Files given explicitly on the\ncommand line will never be excluded.\n",
                    "flag": "-x",
                    "long": "--exclude"
                },
                {
                    "name": "--extension, -E  new = old",
                    "content": "treat files ending with .new as if they ended with .old. Using '-E cgi=rb' will  cause\nxxx.cgi to be parsed as a Ruby file\n",
                    "flag": "-E",
                    "long": "--extension"
                },
                {
                    "name": "--fileboxes, -F",
                    "content": "classes  are  put in boxes which represents files, where these classes reside. Classes\nshared between more than one file are shown with list  of  files  that  sharing  them.\nSilently discarded if --diagram is not given Experimental.\n",
                    "flag": "-F",
                    "long": "--fileboxes"
                },
                {
                    "name": "--fmt, -f  formatname",
                    "content": "set the output formatter (see below).\n",
                    "flag": "-f",
                    "long": "--fmt"
                },
                {
                    "name": "--help, -h",
                    "content": "print usage.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "--help-output, -O",
                    "content": "explain the various output options.\n",
                    "flag": "-O",
                    "long": "--help-output"
                },
                {
                    "name": "--image-format, -I  gif|png|jpg|jpeg",
                    "content": "sets  output  image format for diagrams. Can be png, gif, jpeg, jpg. If this option is\nomitted, png is used. Requires --diagram.\n",
                    "flag": "-I",
                    "long": "--image-format"
                },
                {
                    "name": "--include, -i  dir[,dir...]",
                    "content": "set (or add to) the list of directories to be searched when satisfying  :include:  re‐\nquests. Can be used more than once.\n",
                    "flag": "-i",
                    "long": "--include"
                },
                {
                    "name": "--inline-source, -S",
                    "content": "show method source code inline, rather than via a popup link.\n",
                    "flag": "-S",
                    "long": "--inline-source"
                },
                {
                    "name": "--line-numbers, -N",
                    "content": "include line numbers in the source code\n",
                    "flag": "-N",
                    "long": "--line-numbers"
                },
                {
                    "name": "--main, -m  name",
                    "content": "name will be the initial page displayed.\n",
                    "flag": "-m",
                    "long": "--main"
                },
                {
                    "name": "--merge, -M",
                    "content": "when creating ri output, merge processed classes into previously documented classes of\nthe name name.\n",
                    "flag": "-M",
                    "long": "--merge"
                },
                {
                    "name": "--one-file, -1",
                    "content": "put all the output into a single file.\n",
                    "flag": "-1",
                    "long": "--one-file"
                },
                {
                    "name": "--op, -o  dir",
                    "content": "set the output directory.\n",
                    "flag": "-o",
                    "long": "--op"
                },
                {
                    "name": "--opname, -n  name",
                    "content": "set the name of the output. Has no effect for HTML.\n",
                    "flag": "-n",
                    "long": "--opname"
                },
                {
                    "name": "--promiscuous, -p",
                    "content": "When documenting a file that contains a module or class also defined in  other  files,\nshow  all  stuff for that module/class in each files page. By default, only show stuff\ndefined in that particular file.\n",
                    "flag": "-p",
                    "long": "--promiscuous"
                },
                {
                    "name": "--quiet, -q",
                    "content": "don't show progress as we parse.\n",
                    "flag": "-q",
                    "long": "--quiet"
                },
                {
                    "name": "--ri, -r",
                    "content": "generate output for use by 'ri.' The files are stored in the '.rdoc'  directory  under\nyour  home  directory  unless overridden by a subsequent --op parameter, so no special\nprivileges are needed.\n",
                    "flag": "-r",
                    "long": "--ri"
                },
                {
                    "name": "--ri-site, -R",
                    "content": "generate output for use by 'ri.' The files are stored in a site-wide directory, making\nthem accessible to others, so special privileges are needed.\n",
                    "flag": "-R",
                    "long": "--ri-site"
                },
                {
                    "name": "--ri-system, -Y",
                    "content": "generate  output  for  use  by 'ri.' The files are stored in a system-level directory,\nmaking them accessible to others, so special privileges are needed. This option is in‐\ntended to be used during Ruby installations.\n",
                    "flag": "-Y",
                    "long": "--ri-system"
                },
                {
                    "name": "--show-hash, -H",
                    "content": "a  name  of  the form #name in a comment is a possible hyperlink to an instance method\nname. When displayed, the '#' is removed unless this option is specified.\n",
                    "flag": "-H",
                    "long": "--show-hash"
                },
                {
                    "name": "--style, -s  stylesheet-url",
                    "content": "specifies the URL of a separate stylesheet.\n",
                    "flag": "-s",
                    "long": "--style"
                },
                {
                    "name": "--tab-width, -w  n",
                    "content": "set the width of tab characters (default 8).\n",
                    "flag": "-w",
                    "long": "--tab-width"
                },
                {
                    "name": "--template, -T  template-name",
                    "content": "set the template used when generating output.\n",
                    "flag": "-T",
                    "long": "--template"
                },
                {
                    "name": "--title, -t  text",
                    "content": "set text as the title for the output.\n",
                    "flag": "-t",
                    "long": "--title"
                },
                {
                    "name": "--version, -v",
                    "content": "display  RDoc's version.\n",
                    "flag": "-v",
                    "long": "--version"
                },
                {
                    "name": "--webcvs, -W  url",
                    "content": "specify a URL for linking to a web frontend to CVS. If the URL contains  a  contain  a\n'%s', the filename will be appended to it.\n\n\n\n\nJuly 2014                                   RDOC3.0(1)",
                    "flag": "-W",
                    "long": "--webcvs"
                }
            ]
        }
    },
    "summary": "rdoc3.0 - Generate documentation from Ruby script files",
    "flags": [
        {
            "flag": "-A",
            "long": "--accessor",
            "arg": null,
            "description": "comma separated list of additional class methods that should be treated like 'attrreader' and friends. Option may be repeated. Each accessorname may have '=text' appended, in which case that text appears where the r/w/rw appears for normal acces‐ sors."
        },
        {
            "flag": "-a",
            "long": "--all",
            "arg": null,
            "description": "include all methods (not just public) in the output."
        },
        {
            "flag": "-c",
            "long": "--charset",
            "arg": null,
            "description": "specifies HTML character-set"
        },
        {
            "flag": "-D",
            "long": "--debug",
            "arg": null,
            "description": "displays lots on internal stuff"
        },
        {
            "flag": "-d",
            "long": "--diagram",
            "arg": null,
            "description": "generate diagrams showing modules and classes. You need dot V1.8.6 or later to use the --diagram option correctly. Dot is available from <URL:http://www.re‐ search.att.com/sw/tools/graphviz/>."
        },
        {
            "flag": "-x",
            "long": "--exclude",
            "arg": null,
            "description": "do not process files or directories matching pattern. Files given explicitly on the command line will never be excluded."
        },
        {
            "flag": "-E",
            "long": "--extension",
            "arg": null,
            "description": "treat files ending with .new as if they ended with .old. Using '-E cgi=rb' will cause xxx.cgi to be parsed as a Ruby file"
        },
        {
            "flag": "-F",
            "long": "--fileboxes",
            "arg": null,
            "description": "classes are put in boxes which represents files, where these classes reside. Classes shared between more than one file are shown with list of files that sharing them. Silently discarded if --diagram is not given Experimental."
        },
        {
            "flag": "-f",
            "long": "--fmt",
            "arg": null,
            "description": "set the output formatter (see below)."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "print usage."
        },
        {
            "flag": "-O",
            "long": "--help-output",
            "arg": null,
            "description": "explain the various output options."
        },
        {
            "flag": "-I",
            "long": "--image-format",
            "arg": null,
            "description": "sets output image format for diagrams. Can be png, gif, jpeg, jpg. If this option is omitted, png is used. Requires --diagram."
        },
        {
            "flag": "-i",
            "long": "--include",
            "arg": null,
            "description": "set (or add to) the list of directories to be searched when satisfying :include: re‐ quests. Can be used more than once."
        },
        {
            "flag": "-S",
            "long": "--inline-source",
            "arg": null,
            "description": "show method source code inline, rather than via a popup link."
        },
        {
            "flag": "-N",
            "long": "--line-numbers",
            "arg": null,
            "description": "include line numbers in the source code"
        },
        {
            "flag": "-m",
            "long": "--main",
            "arg": null,
            "description": "name will be the initial page displayed."
        },
        {
            "flag": "-M",
            "long": "--merge",
            "arg": null,
            "description": "when creating ri output, merge processed classes into previously documented classes of the name name."
        },
        {
            "flag": "-1",
            "long": "--one-file",
            "arg": null,
            "description": "put all the output into a single file."
        },
        {
            "flag": "-o",
            "long": "--op",
            "arg": null,
            "description": "set the output directory."
        },
        {
            "flag": "-n",
            "long": "--opname",
            "arg": null,
            "description": "set the name of the output. Has no effect for HTML."
        },
        {
            "flag": "-p",
            "long": "--promiscuous",
            "arg": null,
            "description": "When documenting a file that contains a module or class also defined in other files, show all stuff for that module/class in each files page. By default, only show stuff defined in that particular file."
        },
        {
            "flag": "-q",
            "long": "--quiet",
            "arg": null,
            "description": "don't show progress as we parse."
        },
        {
            "flag": "-r",
            "long": "--ri",
            "arg": null,
            "description": "generate output for use by 'ri.' The files are stored in the '.rdoc' directory under your home directory unless overridden by a subsequent --op parameter, so no special privileges are needed."
        },
        {
            "flag": "-R",
            "long": "--ri-site",
            "arg": null,
            "description": "generate output for use by 'ri.' The files are stored in a site-wide directory, making them accessible to others, so special privileges are needed."
        },
        {
            "flag": "-Y",
            "long": "--ri-system",
            "arg": null,
            "description": "generate output for use by 'ri.' The files are stored in a system-level directory, making them accessible to others, so special privileges are needed. This option is in‐ tended to be used during Ruby installations."
        },
        {
            "flag": "-H",
            "long": "--show-hash",
            "arg": null,
            "description": "a name of the form #name in a comment is a possible hyperlink to an instance method name. When displayed, the '#' is removed unless this option is specified."
        },
        {
            "flag": "-s",
            "long": "--style",
            "arg": null,
            "description": "specifies the URL of a separate stylesheet."
        },
        {
            "flag": "-w",
            "long": "--tab-width",
            "arg": null,
            "description": "set the width of tab characters (default 8)."
        },
        {
            "flag": "-T",
            "long": "--template",
            "arg": null,
            "description": "set the template used when generating output."
        },
        {
            "flag": "-t",
            "long": "--title",
            "arg": null,
            "description": "set text as the title for the output."
        },
        {
            "flag": "-v",
            "long": "--version",
            "arg": null,
            "description": "display RDoc's version."
        },
        {
            "flag": "-W",
            "long": "--webcvs",
            "arg": null,
            "description": "specify a URL for linking to a web frontend to CVS. If the URL contains a contain a '%s', the filename will be appended to it. July 2014 RDOC3.0(1)"
        }
    ],
    "examples": [],
    "see_also": []
}