diff options
| author | gbrandl <devnull@localhost> | 2009-03-15 18:36:00 +0100 |
|---|---|---|
| committer | gbrandl <devnull@localhost> | 2009-03-15 18:36:00 +0100 |
| commit | b00608241e1406c19d572c43b70d3018274274ff (patch) | |
| tree | c700ff86c5d42e046984eb4692f92374da5492ba /sphinx/cmdline.py | |
| parent | 0756f1fc6cb5d8c9291ca62c8c0809bff962b5cc (diff) | |
| download | sphinx-b00608241e1406c19d572c43b70d3018274274ff.tar.gz | |
Work on autodoc: move -g command-line argument to config value, make
directive up to new API.
Diffstat (limited to 'sphinx/cmdline.py')
| -rw-r--r-- | sphinx/cmdline.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sphinx/cmdline.py b/sphinx/cmdline.py index 79bd9751..813661bb 100644 --- a/sphinx/cmdline.py +++ b/sphinx/cmdline.py @@ -43,8 +43,6 @@ new and changed files -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 @@ -145,18 +143,6 @@ def main(argv): 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': |
