Copyright (C) 2017 Pacific Northwest National Laboratory.
The purpose of this library is to provide software developers to quickly prepend headers to selected source files. It provides several options to allow flexibility and control over files to which the headers will be prepended.
The library can be used in Microsoft Windows, Linux, and macOS operating systems.
prepend_header.py FILE DIR [options]
where
-
FILE
= the header to be prepend to each source file (a plain-text file); -
DIR
= the base directory for the software repository; and, -
[options]
= the command-line options.
-
--help
= Display the help message. -
--version
= Display the version. -
--verbose
= Raise the verbosity level (log debug and information messages to the standard error stream). -
--add=GLOB
= Add files matching the specified glob (prefixed with the base directory) to the processing queue. -
--rm=GLOB
= Remove files matching the specified glob (prefixed with the base directory) from the processing queue. -
--path=str
= Replace template path with actual project path.
Before installing the Python-Licensing-Library package, please make sure that you have already installed Python and have an application to unpack a *.tar.gz
file.
-
Extract the Python-Licensing-Library package.
-
Under the directory containing
setup.py
, execute commandpython setup.py install
. -
Install glob2. Under the directory containing
requirements.txt
, execute commandpip install -r requirements.txt
.
To verify installation of dependency use pip list
.
- The package is ready to be used. For assistance on how to use the tool, execute
python prepend_header.py --help
.