oasislmf.cli.clearcache

Classes

ClearCacheCmd

Deletes all Numba cache files.

Module Contents

class oasislmf.cli.clearcache.ClearCacheCmd(*args, **kwargs)[source]

Bases: oasislmf.cli.command.OasisBaseCommand

Deletes all Numba cache files.

add_args(parser)[source]

Adds arguments to the argument parser. This is used to modify which arguments are processed by the command.

Enhanced logging arguments (–log-level, –log-format) added. Legacy –verbose flag maintained for backward compatibility.

Parameters:

parser (ArgumentParser) – The argument parser object

action(args)[source]

Performs the action of the command.

This should be implemented by sub classes.

Parameters:

args – The arguments parsed from parse_args

Returns:

The status code of the action (0 on success)