Implementation for pmg potcar CLI.
Generate POTCAR from POTCAR.spec in directories.
dirname (str) – Directory name.
filename (str) – Filename in directory.
Generate POTCAR.
args (dict) – Args from argparse.
Process a directory.
procfilefunction (callable) – Callable to execute on directory.