Skip to content

Commit 64bb2dd

Browse files
change --type to --paste for initial paste
1 parent 8db8662 commit 64bb2dd

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
@@ -63,7 +63,7 @@ options:
6363

6464
-L, --log Write debugging messages to the file bpython.log. Use
6565
-LL for more verbose logging.
66-
-t file, --type=file Paste in the contents of a file at startup.
66+
-p file, --paste=file Paste in the contents of a file at startup. Only available in :program:`bpython`.
6767

6868
In addition to the common options, :program:`bpython-urwid` also supports the
6969
following options if Twisted is available:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy