Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main():
parser = argparse.ArgumentParser(description=__doc__, prog='removestar', formatter_class=RawDescriptionHelpArgumentDefaultsHelpFormatter)
parser.add_argument('paths', nargs='+',
help="Files or directories to fix", metavar="PATH")
parser.add_argument('-i', '--in-place', action='store_true', help="Edit the files in-place.")
parser.add_argument('--version', action='version', version='%(prog)s ' +
__version__, help="Show removestar version number and exit.")
parser.add_argument('--no-skip-init', action='store_false',
dest='skip_init', help="Don't skip __init__.py files (they are skipped by default)")
parser.add_argument('--no-dynamic-importing', action='store_false', dest='allow_dynamic', help="""Don't dynamically import modules to determine the list of names. This is required for star imports from external modules and modules in the standard library.""")
parser.add_argument('-v', '--verbose', action='store_true', help="""Print information about every imported name that is replaced.""")
parser.add_argument('-q', '--quiet', action='store_true', help="""Don't print any warning messages.""")
parser.add_argument('--max-line-length', type=int, default=100,
help="""The maximum line length for replaced imports before they are wrapped. Set to 0 to disable line wrapping.""")
# For testing
parser.add_argument('--_this-file', action='store_true', help=argparse.SUPPRESS)
args = parser.parse_args()
if args._this_file:
print(__file__, end='')
return