diff --git a/IPython/core/profileapp.py b/IPython/core/profileapp.py index 069b314..86bbb20 100644 --- a/IPython/core/profileapp.py +++ b/IPython/core/profileapp.py @@ -207,4 +207,14 @@ class ProfileApp(Application): create = (ProfileCreate, "Create a new profile dir with default config files"), list = (ProfileList, "List existing profiles") )) + + def start(self): + if self.subapp is None: + print "No subcommand specified. Must specify one of: %s"%(self.subcommands.keys()) + print + self.print_description() + self.print_subcommands() + self.exit(1) + else: + return self.subapp.start() diff --git a/IPython/parallel/apps/ipclusterapp.py b/IPython/parallel/apps/ipclusterapp.py index cd944bf..d075312 100755 --- a/IPython/parallel/apps/ipclusterapp.py +++ b/IPython/parallel/apps/ipclusterapp.py @@ -426,8 +426,9 @@ class IPClusterApp(Application): def start(self): if self.subapp is None: - print "No subcommand specified! Must specify one of: %s"%(self.subcommands.keys()) + print "No subcommand specified. Must specify one of: %s"%(self.subcommands.keys()) print + self.print_description() self.print_subcommands() self.exit(1) else: @@ -435,7 +436,7 @@ class IPClusterApp(Application): def launch_new_instance(): """Create and run the IPython cluster.""" - app = IPBaseParallelApplication.instance() + app = IPClusterApp.instance() app.initialize() app.start()