Commit d15ecc27 authored by Jelmer Vernooij's avatar Jelmer Vernooij

Fix entry point for main script.

parent 6b2d2a95
lintian-brush (0.3) UNRELEASED; urgency=medium
* Fix entry point for main script.
-- Jelmer Vernooij <jelmer@debian.org> Tue, 30 Oct 2018 19:58:41 +0000
lintian-brush (0.2) experimental; urgency=medium
* d/docs: Ship documentation files.
......
......@@ -43,7 +43,7 @@ from . import ( # noqa: E402
)
def main(argv):
def main(argv=None):
parser = argparse.ArgumentParser(prog='lintian-brush')
parser.add_argument(
'--no-update-changelog', action="store_true",
......@@ -113,4 +113,4 @@ def main(argv):
if __name__ == '__main__':
sys.exit(main(sys.argv[1:]))
sys.exit(main())
......@@ -31,7 +31,7 @@ setup(
},
requires=['breezy', 'debian'],
entry_points={
'console_scripts': ['lintian-brush=lintian_brush.__main__']
'console_scripts': ['lintian-brush=lintian_brush.__main__:main']
},
test_suite='lintian_brush.tests.test_suite',
data_files=[('share/lintian-brush/fixers', glob.glob('fixers/*'))],
......
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