summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrique Joaquim <henriquecjoaquim@gmail.com>2024-05-20 11:56:43 +0100
committerGitHub <noreply@github.com>2024-05-20 10:56:43 +0000
commitc65c4adbfb1efc3cc52bf2c0cc39a831433b600e (patch)
tree8b283d7d5b05a8796933e830bbfefc8a39e2dc15
parentbe75bfed9c5b63107ce8ff785aa55a75a80612a5 (diff)
use shlex for spliting the user input (#6436)
-rw-r--r--cli/openbb_cli/controllers/base_controller.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/openbb_cli/controllers/base_controller.py b/cli/openbb_cli/controllers/base_controller.py
index e050311080d..e3c4a8ecfa0 100644
--- a/cli/openbb_cli/controllers/base_controller.py
+++ b/cli/openbb_cli/controllers/base_controller.py
@@ -4,6 +4,7 @@ import argparse
import difflib
import os
import re
+import shlex
from abc import ABCMeta, abstractmethod
from datetime import datetime
from pathlib import Path
@@ -240,7 +241,7 @@ class BaseController(metaclass=ABCMeta):
else:
try:
(known_args, other_args) = self.parser.parse_known_args(
- an_input.split()
+ shlex.split(an_input)
)
except Exception as exc:
raise SystemExit from exc