def main() -> None:
    """
    Command-line processor. See ``--help`` for details.
    """
    main_only_quicksetup_rootlogger(level=logging.DEBUG)
    parser = argparse.ArgumentParser()
    parser.add_argument("directory", nargs="?", default=os.getcwd())
    parser.add_argument("--reportevery", default=10000)
    args = parser.parse_args()
    log.info("Extensions in directory {!r}:", args.directory)
    print("\n".join(repr(x) for x in
                    list_file_extensions(args.directory,
                                         reportevery=args.reportevery)))
def main ( ) -> None : main_only_quicksetup_rootlogger ( level = logging . DEBUG ) parser = argparse . ArgumentParser ( ) parser . add_argument ( "directory" , nargs = "?" , default = os . getcwd ( ) ) parser . add_argument ( "--reportevery" , default = 10000 ) args = parser . parse_args ( ) log . info ( "Extensions in directory {!r}:" , args . directory ) print ( "\n" . join ( repr ( x ) for x in list_file_extensions ( args . directory , reportevery = args . reportevery ) ) )
Command-line processor. See ``--help`` for details.