Skip to content

Commit 00e7f3b

Browse files
fix entry point in setup.py so arguments work
--HG-- branch : scroll-frontend
1 parent 1312bcd commit 00e7f3b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bpython/scroll.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
sys.argv.remove('-v')
1313

1414
def cli():
15-
config, options, exec_args = bpython.args.parse(sys.argv[1:])
15+
config, options, exec_args = bpython.args.parse(args=None)
1616
return main(config=config, options=options, exec_args=exec_args)
1717

1818
def main(locals_=None, config=None, exec_args=None, options=None):
@@ -54,4 +54,4 @@ def main(locals_=None, config=None, exec_args=None, options=None):
5454
repl.scroll_offset += scrolled
5555

5656
if __name__ == '__main__':
57-
cli()
57+
sys.exit(cli())

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def initialize_options(self):
167167
'console_scripts': [
168168
'bpython = bpython.cli:main',
169169
'bpython-urwid = bpython.urwid:main',
170-
'bpython-scroll = bpython.scroll:main [scroll]',
170+
'bpython-scroll = bpython.scroll:cli [scroll]',
171171
],
172172
'gui_scripts': [
173173
'bpython-gtk = bpython.gtk_:main'

0 commit comments

Comments
 (0)