Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df951f4

Browse files
yarikopticminrk
authored andcommitted
restore '-V' cmdline option for printing version
Preserves compatibility with pre-0.11 call, which was broken unnecessarily. closes gh-926
1 parent 444cde7 commit df951f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

IPython/config/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def parse_command_line(self, argv=None):
393393
self.print_examples()
394394
self.exit(0)
395395

396-
if '--version' in argv:
396+
if '--version' in argv or '-V' in argv:
397397
self.print_version()
398398
self.exit(0)
399399

0 commit comments

Comments
 (0)