Task #4701
Updated by Chris Jones over 10 years ago
When using the dataone.cli 'set' command, it throws an error when whitespace is encountered in a value, for instance:
<pre>
> set rights-holder CN=Christopher Jones A2108,O=Google,C=US,DC=cilogon,DC=org
ERROR Command takes no required parameters and 2 optional parameters
</pre>
or
<pre>
> set rights-holder "CN=Christopher Jones A2108,O=Google,C=US,DC=cilogon,DC=org"
ERROR Command takes no required parameters and 2 optional parameters
</pre>
Fix the whitespace handling in cli._split_args() such that it recognizes quoted strings. This will likely also need to be supported when being read back or written to the settings file.
<pre>
> set rights-holder CN=Christopher Jones A2108,O=Google,C=US,DC=cilogon,DC=org
ERROR Command takes no required parameters and 2 optional parameters
</pre>
or
<pre>
> set rights-holder "CN=Christopher Jones A2108,O=Google,C=US,DC=cilogon,DC=org"
ERROR Command takes no required parameters and 2 optional parameters
</pre>
Fix the whitespace handling in cli._split_args() such that it recognizes quoted strings. This will likely also need to be supported when being read back or written to the settings file.