Commit 79ecec67 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

Set a default value for arguments of cubicweb.cwctl:run()

This will help making a console script entry point from this to get rid
of the custom installation of scripts in setup.py.

Accordingly, update all calls of this function.
parent 64c4edac1706
#!/usr/bin/env python
from cubicweb.cwctl import run
import sys
run(sys.argv[1:])
run()
from cubicweb.cwctl import run
import sys
run(sys.argv[1:])
run()
......@@ -1078,7 +1078,7 @@ for cmdcls in (ListCommand,
def run(args):
def run(args=sys.argv[1:]):
"""command line tool"""
import os
filterwarnings('default', category=DeprecationWarning)
......@@ -1093,4 +1093,4 @@ def run(args):
sys.exit(2)
if __name__ == '__main__':
run(sys.argv[1:])
run()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment