% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tools.R
\name{parse_command_args}
\alias{parse_command_args}
\title{Parse key=value argument string with bracket-aware splitting}
\usage{
parse_command_args(arg_string, known_args)
}
\arguments{
\item{arg_string}{Character string of arguments (without the command name).}

\item{known_args}{Character vector of recognized argument names.}
}
\value{
A named list of parsed argument values (all character strings).
}
\description{
Splits a string like \verb{n=5000 tasks=[\{"type": "normal", "mean": 10\}]} into
a named list \code{list(n = "5000", tasks = '[{"type": "normal", "mean": 10}]')}.
Tracks bracket/brace/quote nesting so that spaces inside \verb{[]}, \code{{}}, or \code{""}
are not treated as argument separators.
}
\keyword{internal}
