cubicweb/cwctl.py
changeset 12253 9165f4b7426b
parent 12139 b5be819872bb
child 12265 3f57a23e9954
--- a/cubicweb/cwctl.py	Wed Jan 24 11:34:44 2018 +0100
+++ b/cubicweb/cwctl.py	Wed Jan 24 13:30:50 2018 +0100
@@ -1078,7 +1078,7 @@
 
 
 
-def run(args):
+def run(args=sys.argv[1:]):
     """command line tool"""
     import os
     filterwarnings('default', category=DeprecationWarning)
@@ -1093,4 +1093,4 @@
         sys.exit(2)
 
 if __name__ == '__main__':
-    run(sys.argv[1:])
+    run()