Task #4701
Story #2804: CLI, new features, bugfixes
Fix set command whitespace handling
Start date:
2014-04-08
Due date:
% Done:
100%
Milestone:
None
Product Version:
*
Story Points:
Sprint:
Description
When using the dataone.cli 'set' command, it throws an error when whitespace is encountered in a value, for instance:
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
or
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
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.
History
#1 Updated by Chris Jones over 10 years ago
- Description updated (diff)
#2 Updated by Roger Dahl over 10 years ago
- Status changed from New to Closed
- translation missing: en.field_remaining_hours set to 0.0
#3 Updated by Dave Vieglais about 10 years ago
- Target version deleted (
2014.16-Block.2.4)
#4 Updated by Robert Waltz about 10 years ago
- Target version set to CCI-1.5.0
#5 Updated by Robert Waltz about 10 years ago
- Target version changed from CCI-1.5.0 to CCI-1.4.1
#6 Updated by Robert Waltz about 10 years ago
- Target version deleted (
CCI-1.4.1)