More cleanups to Setting/Argument type handling, mostly for count != 1.
[hooke.git] / hooke / plugin / __init__.py
index 3d3efd9b93a48666a8cda0739d55fd199eae5881..8e77f2fd90f834c1d49fec30aaf7e471acbd5139 100644 (file)
@@ -124,11 +124,15 @@ def argument_to_setting(section_name, argument):
     """Convert an :class:`~hooke.command.Argument` to a
     `~hooke.conf.Setting`.
 
-    This is a lossy transition, because
+    This is useful if, for example, you want to define arguments with
+    configurable default values.
+
+    Conversion is 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,
+                   type=argument.type, count=argument.count,
                    help=argument._help)