Skip to content

Commit e32e8e8

Browse files
change --type to --paste for initial paste
1 parent 8fd2e00 commit e32e8e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bpython/curtsies.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def main(args=None, locals_=None, banner=None):
3434
'curtsies options', None, [
3535
Option('--log', '-L', action='count',
3636
help=_("log debug messages to bpython.log")),
37-
Option('--type', '-t', action='store_true',
38-
help=_("enter lines of file as though interactively "
37+
Option('--paste', '-p', action='store_true',
38+
help=_("start by pasting lines of a file into session"
3939
"typed")),
4040
]))
4141
if options.log is None:
@@ -57,7 +57,7 @@ def main(args=None, locals_=None, banner=None):
5757
if not options:
5858
raise ValueError("don't pass in exec_args without options")
5959
exit_value = 0
60-
if options.type:
60+
if options.paste:
6161
paste = curtsies.events.PasteEvent()
6262
encoding = inspection.get_encoding_file(exec_args[0])
6363
with io.open(exec_args[0], encoding=encoding) as f:

doc/sphinx/source/man-bpython.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ the regular Python interpreter.
5858
-V, --version Print :program:`bpython`'s version and exit.
5959
-L, --log Write debugging messages to the file bpython.log. Use
6060
-LL for more verbose logging. Only available in :program:`bpython`.
61-
-t file, --type=file Paste in the contents of a file at startup. Only available in :program:`bpython`.
61+
-p file, --paste=file Paste in the contents of a file at startup. Only available in :program:`bpython`.
6262

6363
In addition to the above options, :program:`bpython-urwid` also supports the
6464
following options if Twisted is available:

0 commit comments

Comments
 (0)