:py:mod:`pylicense3.cli` ======================== .. py:module:: pylicense3.cli .. autoapi-nested-parse:: Add header to a given file. Usage: pylicense [-hv] [--help] [--verbose] --cfg=CONFIG_FILE PATH Arguments: PATH Directory or file to process. Options: -h, --help Show this message. -v, --verbose Be verbose. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: pylicense3.cli.process_dir pylicense3.cli.get_git_authors pylicense3.cli.read_current_header pylicense3.cli.write_header pylicense3.cli.process_file pylicense3.cli.main .. py:exception:: GitError Bases: :py:obj:`Exception` Common base class for all non-exit exceptions. .. py:function:: process_dir(dirname, config) .. py:function:: get_git_authors(filename, root) .. py:function:: read_current_header(source_iter, prefix, project_name, copyright_statement, license_str, url, lead_in, lead_out) .. py:function:: write_header(target, header, authors, license_str, prefix, project_name, url, max_width, copyright_statement, lead_in, lead_out) .. py:function:: process_file(filename, config, root) .. py:function:: main()