import os
import logging

from ..generate import Generator

help = 'Clean generated projects'


def run(args):
    if os.path.exists(args.file):
        generator = Generator(args.file)
        for project in generator.generate(args.project):
            project.clean(args.tool)
    else:
        # not project known by progen
        logging.warning("%s not found." % args.file)
        return -1
    return 0

def setup(subparser):
    subparser.add_argument("-f", "--file", help="YAML projects file", default='projects.yaml')
    subparser.add_argument("-p", "--project", required = True, help="Specify which project to be removed")
    subparser.add_argument(
        "-t", "--tool", help="Clean project files")

import os
import logging

from ..generate import Generator

help = 'Clean generated projects'


def run(args):
    if os.path.exists(args.file):
        generator = Generator(args.file)
        for project in generator.generate(args.project):
            project.clean(args.tool)
    else:
        # not project known by progen
        logging.warning("%s not found." % args.file)
        return -1
    return 0

def setup(subparser):
    subparser.add_argument("-f", "--file", help="YAML projects file", default='projects.yaml')
    subparser.add_argument("-p", "--project", required = True, help="Specify which project to be removed")
    subparser.add_argument(
        "-t", "--tool", help="Clean project files for this tool")

Clean command - tool help fix
Clean command - tool help fix

  import os
  import logging
  
  from ..generate import Generator
  
  help = 'Clean generated projects'
  
  
  def run(args):
      if os.path.exists(args.file):
          generator = Generator(args.file)
          for project in generator.generate(args.project):
              project.clean(args.tool)
      else:
          # not project known by progen
          logging.warning("%s not found." % args.file)
          return -1
      return 0
  
  def setup(subparser):
      subparser.add_argument("-f", "--file", help="YAML projects file", default='projects.yaml')
      subparser.add_argument("-p", "--project", required = True, help="Specify which project to be removed")
      subparser.add_argument(
-         "-t", "--tool", help="Clean project files")
+         "-t", "--tool", help="Clean project files for this tool")
  
Clean command - tool help fix
## Code Before:
import os
import logging

from ..generate import Generator

help = 'Clean generated projects'


def run(args):
    if os.path.exists(args.file):
        generator = Generator(args.file)
        for project in generator.generate(args.project):
            project.clean(args.tool)
    else:
        # not project known by progen
        logging.warning("%s not found." % args.file)
        return -1
    return 0

def setup(subparser):
    subparser.add_argument("-f", "--file", help="YAML projects file", default='projects.yaml')
    subparser.add_argument("-p", "--project", required = True, help="Specify which project to be removed")
    subparser.add_argument(
        "-t", "--tool", help="Clean project files")

## Instruction:
Clean command - tool help fix
## Code After:
import os
import logging

from ..generate import Generator

help = 'Clean generated projects'


def run(args):
    if os.path.exists(args.file):
        generator = Generator(args.file)
        for project in generator.generate(args.project):
            project.clean(args.tool)
    else:
        # not project known by progen
        logging.warning("%s not found." % args.file)
        return -1
    return 0

def setup(subparser):
    subparser.add_argument("-f", "--file", help="YAML projects file", default='projects.yaml')
    subparser.add_argument("-p", "--project", required = True, help="Specify which project to be removed")
    subparser.add_argument(
        "-t", "--tool", help="Clean project files for this tool")
