diff options
Diffstat (limited to 'yardstick/common/utils.py')
-rw-r--r-- | yardstick/common/utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/yardstick/common/utils.py b/yardstick/common/utils.py index 4de0fcfd5..c482b4da4 100644 --- a/yardstick/common/utils.py +++ b/yardstick/common/utils.py @@ -22,6 +22,14 @@ from oslo_utils import importutils import yardstick +# Decorator for cli-args +def cliargs(*args, **kwargs): + def _decorator(func): + func.__dict__.setdefault('arguments', []).insert(0, (args, kwargs)) + return func + return _decorator + + def itersubclasses(cls, _seen=None): """Generator over all subclasses of a given class in depth first order.""" |