| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8db8662 commit 64bb2dd
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,8 +34,8 @@ def main(args=None, locals_=None, banner=None): | |||
| 34 | 34 | 'curtsies options', None, [ | |
| 35 | 35 | Option('--log', '-L', action='count', | |
| 36 | 36 | 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" | ||
| 39 | 39 | "typed")), | |
| 40 | 40 | ])) | |
| 41 | 41 | if options.log is None: | |
@@ -57,7 +57,7 @@ def main(args=None, locals_=None, banner=None): | |||
| 57 | 57 | if not options: | |
| 58 | 58 | raise ValueError("don't pass in exec_args without options") | |
| 59 | 59 | exit_value = 0 | |
| 60 | - if options.type: | ||
| 60 | + if options.paste: | ||
| 61 | 61 | paste = curtsies.events.PasteEvent() | |
| 62 | 62 | encoding = inspection.get_encoding_file(exec_args[0]) | |
| 63 | 63 | with io.open(exec_args[0], encoding=encoding) as f: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,7 +63,7 @@ options: | |||
| 63 | 63 | ||
| 64 | 64 | -L, --log Write debugging messages to the file bpython.log. Use | |
| 65 | 65 | -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`. | ||
| 67 | 67 | ||
| 68 | 68 | In addition to the common options, :program:`bpython-urwid` also supports the | |
| 69 | 69 | following options if Twisted is available: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments