Open ekluzek opened 2 years ago
ctsm/subset_data.py: print("Must supply a positional argument: 'point' or 'region'.") ctsm/subset_data.py: print("See ./subset_data --help for more help.") ctsm/subset_data.py: print("Must supply one of:") ctsm/subset_data.py: print(" --create-surface \n --create-landuse \n --create-datm \n --create-domain") ctsm/subset_data.py: print("See ./subset_data --help for more help.")
I think these were actually going to get changed to argparse.ArgumentError
s? @negin513 clarify if I am wrong though!
Note, we decided in our new command line standards for python tools (and meeting yesterday with a group of us), that some careful use of print statements are acceptable. The minimum required output should be done using print statements, for the minimum list of things that should be done no matter what. The INFO and DEBUG levels should also be used for extra logging output. But, even so I think most of this list should be changed from print to logging.
There's a few python modules under the python directory that still use a print statement rather than using python logging. These should be updated to use our standard python logging system.
for example "git grep 'print(' shows the following...