From 1d932722b0541023d6ee9c617a76b029aff96295 2014-05-07 00:12:19 From: Thomas Kluyver Date: 2014-05-07 00:12:19 Subject: [PATCH] Fix applications displaying subcommands --- diff --git a/IPython/config/application.py b/IPython/config/application.py index ed13a37..be907ed 100644 --- a/IPython/config/application.py +++ b/IPython/config/application.py @@ -311,7 +311,7 @@ class Application(SingletonConfigurable): lines.append('-'*len(lines[0])) lines.append('') for p in wrap_paragraphs(self.subcommand_description.format( - app=os.path.basename(self.argv[0]))): + app=self.name)): lines.append(p) lines.append('') for subc, (cls, help) in iteritems(self.subcommands): diff --git a/IPython/core/profileapp.py b/IPython/core/profileapp.py index 2a41258..d5a6604 100644 --- a/IPython/core/profileapp.py +++ b/IPython/core/profileapp.py @@ -294,7 +294,7 @@ class ProfileCreate(BaseIPythonApplication): class ProfileApp(Application): - name = u'ipython-profile' + name = u'ipython profile' description = profile_help examples = _main_examples diff --git a/IPython/kernel/kernelspecapp.py b/IPython/kernel/kernelspecapp.py index 0bce02d..8ee961b 100644 --- a/IPython/kernel/kernelspecapp.py +++ b/IPython/kernel/kernelspecapp.py @@ -90,7 +90,7 @@ class InstallKernelSpec(BaseIPythonApplication): raise class KernelSpecApp(Application): - name = "ipython-kernelspec" + name = "ipython kernelspec" description = """Manage IPython kernel specifications.""" subcommands = Dict(dict(