get_standard_makefile_args is a script in CIMEROOT/CIME/Tools.

$ ./get_standard_makefile_args --help
usage: get_standard_makefile_args [-h] [-d] [-v] [-s] [caseroot]

Output the list of standard makefile args to the command line.  This script
should only be used when the components buildlib is not written in python

positional arguments:
  caseroot       Case directory to build.
                 Default is current directory.

  -h, --help     show this help message and exit

Logging options:
  -d, --debug    Print debug information (very verbose) to file /home/runner/work/cime/cime/CIME/Tools/get_standard_makefile_args.log
  -v, --verbose  Add additional context (time and file) to log messages
  -s, --silent   Print only warnings and error messages