summaryrefslogtreecommitdiff
path: root/clcommands.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2010-08-09 11:47:10 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2010-08-09 11:47:10 +0200
commit0b565571dc37df79db326273e0d47cb52c2d7bfe (patch)
tree56bdecad5c8081ce97ff12ce0111f7ac10d76534 /clcommands.py
parenta2effd103e2f0c76f317166d97d2efa32c74b654 (diff)
downloadlogilab-common-0b565571dc37df79db326273e0d47cb52c2d7bfe.tar.gz
minor cleanups
Diffstat (limited to 'clcommands.py')
-rw-r--r--clcommands.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/clcommands.py b/clcommands.py
index 4341d5f..3608887 100644
--- a/clcommands.py
+++ b/clcommands.py
@@ -20,11 +20,8 @@ one command.
e.g called as "tool command [options] args..." where <options> and <args> are
command'specific
-
-
-
-
"""
+
__docformat__ = "restructuredtext en"
# XXX : merge with optparser ?
@@ -142,7 +139,10 @@ def cmd_run(cmdname, *args):
def main_run(args, doc=DEFAULT_DOC, copyright=DEFAULT_COPYRIGHT):
- """command line tool"""
+ """command line tool
+
+ >>> main_run(sys.argv[1:])
+ """
try:
arg = args.pop(0)
except IndexError: