Source

sphinx / sphinx / cmdline.py

Diff from to

File sphinx/cmdline.py

          -C        -- use no config file at all, only -D options
          -D <setting=value> -- override a setting in configuration
          -A <name=value>    -- pass a value into the templates, for HTML builder
-         -g <path> -- auto-generate docs with sphinx.ext.autosummary
-                      for autosummary directives in sources found in path
          -N        -- do not do colored output
          -q        -- no output on stdout, just warnings on stderr
          -Q        -- no output at all, not even warnings
             except ValueError:
                 pass
             htmlcontext[key] = val
-        elif opt == '-g':
-            # XXX XXX XXX
-            source_filenames = [path.join(srcdir, f)
-                                for f in os.listdir(srcdir) if f.endswith('.rst')]
-            if val is None:
-                print >>sys.stderr, \
-                      'Error: you must provide a destination directory ' \
-                      'for autodoc generation.'
-                return 1
-            p = path.abspath(val)
-            from sphinx.ext.autosummary.generate import generate_autosummary_docs
-            generate_autosummary_docs(source_filenames, p)
         elif opt == '-N':
             nocolor()
         elif opt == '-E':