Let's say I have a command that accepts an option such as
-o in SSH as in the command below. You can pass multiple configurable options like
ProxyCommand="ssh firewall nc remote 22".
let sampleCommand = "ssh -o ProxyCommand=\"ssh firewall nc remote 22\" server"
This command option clashes with the
parse function as it only takes in an array of Strings to parse the given command.
`MyCommand.parse(commandString.components(separatedBy: " "))`
sampleCommand to the
parse function breaks the meaning of the command as the individual elements in the array don't make sense, if you take them in a String they make sense as the content of
ProxyCommand should be treated as a single string to be sent not as an array. Also, this parameter
ProxyCommand can vary and be other one such as
Is it possible for my
ParsableCommand model to parse command values that contains spaces such as
'ssh firewall nc remote 22' as shown before? I don't know if a valid option would be to treat the
-o as a separate subcommand and how to deal with the variability of arguments it take would be handled by