Documentation improvements
diff --git a/scripts/config.py b/scripts/config.py
index b872a8f..27a412a 100755
--- a/scripts/config.py
+++ b/scripts/config.py
@@ -53,12 +53,10 @@
if there is a #define for it whether commented out or not.
This class supports the following protocols:
- * `name in config` is True if the symbol `name` is set in the
- configuration, False otherwise (whether `name` is known but commented
- out or not known at all).
- * `config[name]` is the value of the macro `name`. If `name` is not
- set, raise `KeyError` (even if a definition for `name` is present
- but commented out).
+ * `name in config` is `True` if the symbol `name` is active, `False`
+ otherwise (whether `name` is inactive or not known).
+ * `config[name]` is the value of the macro `name`. If `name` is inactive,
+ raise `KeyError` (even if `name` is known).
* `config[name] = value` sets the value associated to `name`. `name`
must be known, but does not need to be set. This does not cause
name to become set.
@@ -156,7 +154,7 @@
return section.endswith('support') or section.endswith('modules')
def realfull_adapter(_name, active, section):
- """Uncomment everything in the system and feature sections."""
+ """Activate all symbols found in the system and feature sections."""
if not is_full_section(section):
return active
return True
@@ -293,7 +291,8 @@
def _format_template(self, name, indent, middle):
"""Build a line for config.h for the given setting.
- The line has the form "<indent>#define <name><middle> <value>".
+ The line has the form "<indent>#define <name> <value>"
+ where <middle> is "#define <name> ".
"""
setting = self.settings[name]
return ''.join([indent,
@@ -334,7 +333,7 @@
action='store_true',
help="""For the set command, if SYMBOL is not
present, add a definition for it.""")
- parser.add_argument('--write', '-w',
+ parser.add_argument('--write', '-w', metavar='FILE',
help="""File to write to instead of the input file.""")
subparsers = parser.add_subparsers(dest='command',
title='Commands')