diff options
| author | orutherfurd <orutherfurd@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2004-03-21 22:33:36 +0000 |
|---|---|---|
| committer | orutherfurd <orutherfurd@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2004-03-21 22:33:36 +0000 |
| commit | 6126be3ca7e624ff208ac3b31de62116e6bc109a (patch) | |
| tree | 7de5c01b23ccbbb3b5a9a9156b30c2316757b7ee /docutils/frontend.py | |
| parent | 9f31157a98faacf4c2b8f2bbdf2bbbd5078d6093 (diff) | |
| download | docutils-6126be3ca7e624ff208ac3b31de62116e6bc109a.tar.gz | |
added option to disable section numbering
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1849 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/frontend.py')
| -rw-r--r-- | docutils/frontend.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docutils/frontend.py b/docutils/frontend.py index 5523c947e..f98f1bb4c 100644 --- a/docutils/frontend.py +++ b/docutils/frontend.py @@ -293,6 +293,10 @@ class OptionParser(optparse.OptionParser, docutils.SettingsSpec): ('Disable backlinks from footnotes and citations.', ['--no-footnote-backlinks'], {'dest': 'footnote_backlinks', 'action': 'store_false'}), + ('Disable Docutils section numbering', + ['--disable-section-numbering'], + {'action': 'store_false', 'default': 1, + 'dest': 'enable_section_numbering', 'validator': validate_boolean}), ('Set verbosity threshold; report system messages at or higher than ' '<level> (by name or number: "info" or "1", warning/2, error/3, ' 'severe/4; also, "none" or "5"). Default is 2 (warning).', |
