From 05509bf4acfda8da0e660d018cb6f904469278b0 2013-07-24 19:01:11 From: Jonathan Frederic Date: 2013-07-24 19:01:11 Subject: [PATCH] Provide a more useful error for invalid use case. The previous help statement was not very usefull for users who don't know how to use nbconvert (ironically, the exact set of users who would encounter the error). --- diff --git a/IPython/nbconvert/nbconvertapp.py b/IPython/nbconvert/nbconvertapp.py index 8d36aeb..19d23f8 100755 --- a/IPython/nbconvert/nbconvertapp.py +++ b/IPython/nbconvert/nbconvertapp.py @@ -215,12 +215,10 @@ class NbConvertApp(BaseIPythonApplication): # No notebooks were specified, show help. if len(self.notebooks) == 0: - self.print_help() + self.print_examples() - # Notebooks were specified, but not converted successfully. Show how - # to access help. - else: - print('For help, use "ipython nbconvert --help"') + # Show how to access help. + print('For help, use "ipython nbconvert --help"') #-----------------------------------------------------------------------------