From 2f6348a6a13aae146b22c0d87072a56f0440a1f5 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Wed, 23 Oct 2024 18:50:46 -0500 Subject: T6718: split path strings with single-quoted values containing ws --- src/vycli.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vycli.ml') diff --git a/src/vycli.ml b/src/vycli.ml index 83c5eb1..1430a5a 100644 --- a/src/vycli.ml +++ b/src/vycli.ml @@ -85,7 +85,7 @@ let main socket op path out_format config_format = let _ = let () = Arg.parse args (fun _ -> ()) usage in - let path = String.trim !path_opt |> Pcre.split ~pat:"\\s+" in + let path = Vyos1x.Util.list_of_path !path_opt in let out_format = output_format_of_string !out_format_opt in let config_format = config_format_of_string !conf_format_opt in let result = Lwt_main.run (main !socket !op path out_format config_format) in exit result -- cgit v1.2.3