##// END OF EJS Templates
Fix listing of subcommands for "ipython profile" and "ipython history". (#14421)...
M Bussonnier -
r28754:51f11878 merge
parent child Browse files
Show More
@@ -146,9 +146,11 b' class HistoryApp(Application):'
146
146
147 def start(self):
147 def start(self):
148 if self.subapp is None:
148 if self.subapp is None:
149 print("No subcommand specified. Must specify one of: %s" % \
149 print(
150 (self.subcommands.keys()))
150 "No subcommand specified. Must specify one of: "
151 print()
151 + ", ".join(map(repr, self.subcommands))
152 + ".\n"
153 )
152 self.print_description()
154 self.print_description()
153 self.print_subcommands()
155 self.print_subcommands()
154 self.exit(1)
156 self.exit(1)
@@ -303,8 +303,11 b' class ProfileApp(Application):'
303
303
304 def start(self):
304 def start(self):
305 if self.subapp is None:
305 if self.subapp is None:
306 print("No subcommand specified. Must specify one of: %s"%(self.subcommands.keys()))
306 print(
307 print()
307 "No subcommand specified. Must specify one of: "
308 + ", ".join(map(repr, self.subcommands))
309 + ".\n"
310 )
308 self.print_description()
311 self.print_description()
309 self.print_subcommands()
312 self.print_subcommands()
310 self.exit(1)
313 self.exit(1)
General Comments 0
You need to be logged in to leave comments. Login now