##// END OF EJS Templates
Fix applications displaying subcommands
Thomas Kluyver -
Show More
@@ -311,7 +311,7 b' class Application(SingletonConfigurable):'
311 lines.append('-'*len(lines[0]))
311 lines.append('-'*len(lines[0]))
312 lines.append('')
312 lines.append('')
313 for p in wrap_paragraphs(self.subcommand_description.format(
313 for p in wrap_paragraphs(self.subcommand_description.format(
314 app=os.path.basename(self.argv[0]))):
314 app=self.name)):
315 lines.append(p)
315 lines.append(p)
316 lines.append('')
316 lines.append('')
317 for subc, (cls, help) in iteritems(self.subcommands):
317 for subc, (cls, help) in iteritems(self.subcommands):
@@ -294,7 +294,7 b' class ProfileCreate(BaseIPythonApplication):'
294
294
295
295
296 class ProfileApp(Application):
296 class ProfileApp(Application):
297 name = u'ipython-profile'
297 name = u'ipython profile'
298 description = profile_help
298 description = profile_help
299 examples = _main_examples
299 examples = _main_examples
300
300
@@ -90,7 +90,7 b' class InstallKernelSpec(BaseIPythonApplication):'
90 raise
90 raise
91
91
92 class KernelSpecApp(Application):
92 class KernelSpecApp(Application):
93 name = "ipython-kernelspec"
93 name = "ipython kernelspec"
94 description = """Manage IPython kernel specifications."""
94 description = """Manage IPython kernel specifications."""
95
95
96 subcommands = Dict(dict(
96 subcommands = Dict(dict(
General Comments 0
You need to be logged in to leave comments. Login now