commit: 4626141ce6464f8bb6efe04f649864315858496a
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Thu May 15 17:13:24 2014 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Thu May 15 17:13:24 2014 +0000
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=4626141c
cli.py: Complete docstrings
---
gkeyldap/cli.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gkeyldap/cli.py b/gkeyldap/cli.py
index 1eba841..51a5060 100644
--- a/gkeyldap/cli.py
+++ b/gkeyldap/cli.py
@@ -27,6 +27,8 @@ class Main(object):
""" Main class init function.
@param root: string, root path to use
+ @param config: optional GKeysConfig instance, For API use
+ @param print_results: optional boolean, for API use
"""
self.root = root or "/"
self.config = config or GKeysConfig(root=root)
@@ -36,6 +38,11 @@ class Main(object):
def __call__(self, args=None):
+ """Main class call function
+
+ @param args: Optional list of argumanets to parse and action to run
+ Defaults to sys.argv[1:]
+ """
if args:
self.run(self.parse_args(args))
else: