code: def format_usage(self, ctx, formatter):
          
          pieces = self.collect_usage_pieces(ctx)
          formatter.write_usage(ctx.command_path, ' '.join(pieces))
docs: Writes the usage line into the formatter.