"""
pass
+# Plugin utility functions
+
+def argument_to_setting(section_name, argument):
+ """Convert an :class:`~hooke.command.Argument` to a
+ `~hooke.conf.Setting`.
+
+ This is a lossy transition, because
+ :class:`~hooke.command.Argument`\s store more information than
+ `~hooke.conf.Setting`\s.
+ """
+ return Setting(section_name, option=argument.name, value=argument.default,
+ help=argument._help)
+
# Construct plugin dependency graph and load plugin instances.
PLUGIN_GRAPH = construct_graph(
pass
items.append(item)
return items
-
-def argument_to_setting(self, section_name, argument):
- """Convert an :class:`~hooke.command.Argument` to a
- `~hooke.conf.Setting`.
-
- This is a lossy transition, because
- :class:`~hooke.command.Argument`\s store more information than
- `~hooke.conf.Setting`\s.
- """
- return Setting(section_name, option=argument.name, value=argument.default,
- help=argument._help)