Skip to content

esmvaltool run --help does not show all possible command line options #1433

@schlunma

Description

@schlunma

Currently, esmvaltool run --help returns

> esmvaltool run --help
...

FLAGS
    --config_file=CONFIG_FILE
        Type: Optional[]
        Default: None
        Configuration file to use. If not provided the file ${HOME}/.esmvaltool/config-user.yml will be used.
    --resume_from=RESUME_FROM
        Type: Optional[]
        Default: None
        Resume one or more previous runs by using preprocessor output files from these output directories.
    --max_datasets=MAX_DATASETS
        Type: Optional[]
        Default: None
        Maximum number of datasets to use.
    --max_years=MAX_YEARS
        Type: Optional[]
        Default: None
        Maximum number of years to use.
    --skip_nonexistent=SKIP_NONEXISTENT
        Default: False
        If True, the run will not fail if some datasets are not available.
    --offline=OFFLINE
        Type: Optional[]
        Default: None
        If True, the tool will not download missing data from ESGF.
    --diagnostics=DIAGNOSTICS
        Type: Optional[]
        Default: None
        Only run the selected diagnostics from the recipe. To provide more than one diagnostic to filter use the syntax 'diag1 diag2/script1' or '("diag1", "diag2/script1")' and pay attention to the quotes.
    --check_level=CHECK_LEVEL
        Default: 'default'
        Configure the sensitivity of the CMOR check. Possible values are: `ignore` (all errors will be reported as warnings), `relaxed` (only fail if there are critical errors), default (fail if there are any errors), strict (fail if there are any warnings).
    Additional flags are accepted.

These are clearly not all possible arguments, see for example here:

_validators = {
# From user config
'log_level': validate_string,
'exit_on_warning': validate_bool,
'output_dir': validate_path,
'download_dir': validate_path,
'auxiliary_data_dir': validate_path,
'extra_facets_dir': validate_pathtuple,
'compress_netcdf': validate_bool,
'save_intermediary_cubes': validate_bool,
'remove_preproc_dir': validate_bool,
'max_parallel_tasks': validate_int_or_none,
'config_developer_file': validate_config_developer,
'profile_diagnostic': validate_bool,
'run_diagnostic': validate_bool,
'output_file_type': validate_string,
# From CLI
"resume_from": validate_pathlist,
"skip-nonexistent": validate_bool,
"diagnostics": validate_diagnostics,
"check_level": validate_check_level,
"offline": validate_bool,
'max_years': validate_int_positive_or_none,
'max_datasets': validate_int_positive_or_none,
# From recipe
'write_ncl_interface': validate_bool,
# oldstyle
'rootpath': validate_oldstyle_rootpath,
'drs': validate_oldstyle_drs,
# config location
'config_file': validate_path,
}

@ESMValGroup/esmvaltool-coreteam Is there a certain strategy which options are shows in the help and which not? I think it would definitely make sense to show additional options (not all of them!), like run_diagnostic which even appears in the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions