|  | @@ -98,7 +98,6 @@ class Command(object):
 | 
											
												
													
														|  |              return (c.red("ERROR"),
 |  |              return (c.red("ERROR"),
 | 
											
												
													
														|  |                      indent(self.prettify(n["error"])[1]))
 |  |                      indent(self.prettify(n["error"])[1]))
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |      def prettify(self, n):
 |  |      def prettify(self, n):
 | 
											
												
													
														|  |          OK = str(self.colored.green("OK"))
 |  |          OK = str(self.colored.green("OK"))
 | 
											
												
													
														|  |          if isinstance(n, list):
 |  |          if isinstance(n, list):
 | 
											
										
											
												
													
														|  | @@ -203,6 +202,8 @@ class inspect(Command):
 | 
											
												
													
														|  |          if not args:
 |  |          if not args:
 | 
											
												
													
														|  |              raise Error("Missing inspect command. See --help")
 |  |              raise Error("Missing inspect command. See --help")
 | 
											
												
													
														|  |          command = args[0]
 |  |          command = args[0]
 | 
											
												
													
														|  | 
 |  | +        if command == "help":
 | 
											
												
													
														|  | 
 |  | +            raise Error("Did you mean 'inspect --help'?")
 | 
											
												
													
														|  |          if command not in self.choices:
 |  |          if command not in self.choices:
 | 
											
												
													
														|  |              raise Error("Unknown inspect command: %s" % command)
 |  |              raise Error("Unknown inspect command: %s" % command)
 | 
											
												
													
														|  |          from celery.task.control import inspect
 |  |          from celery.task.control import inspect
 | 
											
										
											
												
													
														|  | @@ -239,9 +240,8 @@ class inspect(Command):
 | 
											
												
													
														|  |  inspect = command(inspect)
 |  |  inspect = command(inspect)
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |  def indent(s, n=4):
 |  |  def indent(s, n=4):
 | 
											
												
													
														|  | -    i = [" " * 4 + l for l in s.split("\n")]
 |  | 
 | 
											
												
													
														|  | 
 |  | +    i = [" " * n + l for l in s.split("\n")]
 | 
											
												
													
														|  |      return "\n".join("\n".join(wrap(j)) for j in i)
 |  |      return "\n".join("\n".join(wrap(j)) for j in i)
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 |