old_contents: from os import path
  import argparse
  import glob
  import sys
  from code_generator import CodeGeneratorOptions
  from code_generator_swift import Swift3CodeGenerator
  
  def main():
      parser = argparse.ArgumentParser(description="SVG2Code - Code Generator")
      parser.add_argument('-o', '--output', help='Output file name', default="SVGDrawablesKit.swift")
      parser.add_argument('-c', '--class-name', help='Class name', default="SVGDrawablesKit")
      parser.add_argument('-s', '--spaces', type=int, help='Numbers of spacer per indentation', default=4)
      parser.add_argument('--tabs', help="Use tabs instead of spaces", action="store_true", default=False)
      parser.add_argument('files', nargs='*', default='.')
  
      args = parser.parse_args()
  
      print(args)
  
      filesToParse = set()
      
      for f in args.files:
          abspath = path.abspath(path.expanduser(f))
  
          if path.isdir(abspath):
              filesToParse.update(set(glob.glob(path.join(abspath, '*.svg'))))
          elif abspath.endswith('.svg'):
              filesToParse.add(abspath)
  
      outputPath = path.abspath(args.output)
  
      if path.isdir(outputPath):
          path.join(outputPath, )
  
      extension = path.splitext(outputPath)[1]
  
      if extension not in ['.swift']:
          print("There is no code generator for '%s' files yet." % extension)
          exit(1)
  
      options = CodeGeneratorOptions(
          path=outputPath,
          className=args.class_name,
          useTabs=args.tabs,
          spaces=args.spaces
      )
      swiftGen = Swift3CodeGenerator(options)
      swiftGen.genCodeFromSVGFiles(list(filesToParse))
  
  if __name__ == '__main__':
      main()
new_contents: from os import path
  import argparse
  import glob
  import sys
  from code_generator import CodeGeneratorOptions
  from code_generator_swift import Swift3CodeGenerator
  
  def main():
      parser = argparse.ArgumentParser(description="SVG2Code - Code Generator")
      parser.add_argument('-o', '--output', help='Output file name', default="SVGDrawablesKit.swift")
      parser.add_argument('-c', '--class-name', help='Class name', default="SVGDrawablesKit")
      parser.add_argument('-s', '--spaces', type=int, help='Numbers of spacer per indentation', default=4)
      parser.add_argument('--tabs', help="Use tabs instead of spaces", action="store_true", default=False)
      parser.add_argument('files', nargs='*', default='.')
  
      args = parser.parse_args()
  
      filesToParse = set()
      
      for f in args.files:
          abspath = path.abspath(path.expanduser(f))
  
          if path.isdir(abspath):
              filesToParse.update(set(glob.glob(path.join(abspath, '*.svg'))))
          elif abspath.endswith('.svg'):
              filesToParse.add(abspath)
  
      outputPath = path.abspath(args.output)
  
      if path.isdir(outputPath):
          path.join(outputPath, )
  
      extension = path.splitext(outputPath)[1]
  
      if extension not in ['.swift']:
          print("There is no code generator for '%s' files yet." % extension)
          exit(1)
  
      options = CodeGeneratorOptions(
          path=outputPath,
          className=args.class_name,
          useTabs=args.tabs,
          spaces=args.spaces
      )
      swiftGen = Swift3CodeGenerator(options)
      swiftGen.genCodeFromSVGFiles(list(filesToParse))
  
  if __name__ == '__main__':
      main()
subject: Remove print statement