Skip to content
Snippets Groups Projects
Unverified Commit e8be448a authored by Nikos Kontakis's avatar Nikos Kontakis
Browse files

Minor fixes and support backward compatibility

parent b1bd35e9
No related merge requests found
......@@ -357,7 +357,7 @@ impl<'de> de::Visitor<'de> for ArgVisitor {
{
// covers the "-lruntime=debug,parachain=trace" case
// TODO: Make this more generic by adding the scenario in the regex below
if (v.starts_with("-l") || v.starts_with("-log")) && v.contains(",") {
if (v.starts_with("-l") || v.starts_with("-log")) && v.contains(',') {
return Ok(Arg::Flag(v.to_string()));
}
let re = Regex::new("^(?<name_prefix>(?<prefix>-{1,2})(?<name>[a-zA-Z]+(-[a-zA-Z]+)*))((?<separator>=| )(?<value>.+))?$").unwrap();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment