diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-03-08 06:40:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-03-08 06:40:49 +0000 |
commit | 009d0b0f17cc82919a683a1ecb6a334f5354090d (patch) | |
tree | a892178f3bfd61e0f42ccb31c17d54165d370ae9 /test/features/steps/utils.py | |
parent | Releasing debian version 1.23.2-2. (diff) | |
download | mycli-009d0b0f17cc82919a683a1ecb6a334f5354090d.tar.xz mycli-009d0b0f17cc82919a683a1ecb6a334f5354090d.zip |
Merging upstream version 1.24.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/features/steps/utils.py')
-rw-r--r-- | test/features/steps/utils.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/features/steps/utils.py b/test/features/steps/utils.py new file mode 100644 index 0000000..1ae63d2 --- /dev/null +++ b/test/features/steps/utils.py @@ -0,0 +1,12 @@ +import shlex + + +def parse_cli_args_to_dict(cli_args: str): + args_dict = {} + for arg in shlex.split(cli_args): + if '=' in arg: + key, value = arg.split('=') + args_dict[key] = value + else: + args_dict[arg] = None + return args_dict |