Skip to content

Commit a387e8c

Browse files
committed
Drop "-c" config option as it conflicts with vanilla Python's "-c" option.
This closes issue bpython#186.
1 parent 79b9e7b commit a387e8c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Some issues have been resolved as well:
1616
which happens in some situations. See issue #94.
1717
* Non-ascii input should work now under Python 3.
1818
* Issue #165: C-a and C-e do the right thing now in urwid.
19+
* The short command-line option "-c config" was dropped as it conflicts with
20+
vanilla Python's "-c command" option. See issue #186.
1921

2022
v0.9.7.1
2123
--------

bpython/args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def parse(args, extras=None, ignore_stdin=False):
5858
# That's probably fixable though, for example by having that
5959
# option swallow all remaining arguments in a callback.
6060
parser.disable_interspersed_args()
61-
parser.add_option('--config', '-c', default=default_config_path(),
61+
parser.add_option('--config', default=default_config_path(),
6262
help='use CONFIG instead of default config file')
6363
parser.add_option('--interactive', '-i', action='store_true',
6464
help='Drop to bpython shell after running file '

sample-config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This is a standard python config file
22
# Valid values can be True, False, integer numbers, strings
3-
# By default bpython will look for ~/.bpython/config or you can specify a file
4-
# with the -c option on the command line
3+
# By default bpython will look for ~/.config/bpython/config or you
4+
# can specify a file with the --config option on the command line
55

66
# General section tag
77
[general]

0 commit comments

Comments
 (0)