From f6e522f96fdef0554c901b44052ab0aac0b6c27c Mon Sep 17 00:00:00 2001 From: "michele.maris" Date: Tue, 10 Jan 2023 18:08:05 +0100 Subject: [PATCH] u --- src/yapsut/DummyCLI.py | 9 +++++++++ src/yapsut/__init__.py | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 src/yapsut/DummyCLI.py diff --git a/src/yapsut/DummyCLI.py b/src/yapsut/DummyCLI.py new file mode 100644 index 0000000..386544b --- /dev/null +++ b/src/yapsut/DummyCLI.py @@ -0,0 +1,9 @@ +class DummyCLI : + """ this is used to create a dummy command line which is used in notebooks to simulate a parsed cli interface + it has two structures: + args = arguments passed from the CLI + Options = options passed from the CLI + """ + def __init__(self) : + self.args=struct() + self.Options=struct() diff --git a/src/yapsut/__init__.py b/src/yapsut/__init__.py index 2a287ea..34b9cb6 100644 --- a/src/yapsut/__init__.py +++ b/src/yapsut/__init__.py @@ -9,6 +9,8 @@ from .files import moveFile2backup from .wavenumber_base import wavenumber_base from .profiling import timer,timerDict from .struct import struct +from .DummyCLI import DummyCLI + #from import .grep #import .intervalls -- GitLab