diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-02-26 02:55:41 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-02-26 02:58:19 +0100 |
commit | 50eef5e1b13b42a1affbfd516ac2a8f6939b1c16 (patch) | |
tree | 354545477bb2d5e56fd51f9959ac660cf67f644a | |
parent | 45bdeeab7ea527505842c55d6997c02d0c072324 (diff) | |
download | clufter-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.py | 2 | ||||
-rw-r--r-- | utils.py | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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), @@ -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 |