Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
avoid the help to be displayed twice for a command magic
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Mar 1, 2015
1 parent b17e0d2 commit 53e15cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyquickhelper/ipythonhelper/magic_class.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def custom_magic_command(self, line):
try: try:
args = parser.parse_cmd(line, context=self.Context) args = parser.parse_cmd(line, context=self.Context)
except SystemExit: except SystemExit:
print_function(parser.print_help()) print_function(parser.format_usage())
args = None args = None


return args return args

0 comments on commit 53e15cf

Please sign in to comment.