summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-02-26 02:55:41 +0100
committerJan Pokorný <jpokorny@redhat.com>2014-02-26 02:58:19 +0100
commit50eef5e1b13b42a1affbfd516ac2a8f6939b1c16 (patch)
tree354545477bb2d5e56fd51f9959ac660cf67f644a
parent45bdeeab7ea527505842c55d6997c02d0c072324 (diff)
downloadclufter-50eef5e1b13b42a1affbfd516ac2a8f6939b1c16.tar.gz
clufter-50eef5e1b13b42a1affbfd516ac2a8f6939b1c16.tar.xz
clufter-50eef5e1b13b42a1affbfd516ac2a8f6939b1c16.zip
command+utils: adjust comments
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--command.py2
-rw-r--r--utils.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/command.py b/command.py
index 1d3b4eb..dd933b2 100644
--- a/command.py
+++ b/command.py
@@ -151,6 +151,7 @@ class Command(object):
#
def _figure_fnc_defaults_varnames(self):
+ """Dissect self._fnc to arg defaults (dict) + all arg names (tuple)"""
try:
fnc = self._fnc
except:
@@ -197,6 +198,7 @@ class Command(object):
else:
description.append(line)
+ # unofficial/unsupported ones
for var in fnc_varnames:
if var not in optionset:
options.append(make_option("--{0}".format(var),
diff --git a/utils.py b/utils.py
index bb6df6a..457e011 100644
--- a/utils.py
+++ b/utils.py
@@ -140,7 +140,7 @@ def which(name, *where):
def func_defaults_varnames(func, skip=0):
- """Using introspection, get a dict of kwargs' defaults + all arg names
+ """Using introspection, get arg defaults (dict) + all arg names (tuple)
Parameters:
skipfirst how many initial arguments to skip