Project

General

Profile

Task #4701

Story #2804: CLI, new features, bugfixes

Fix set command whitespace handling

Added by Chris Jones about 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
d1_client_cli
Target version:
-
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 about 10 years ago

  • Description updated (diff)

#2 Updated by Roger Dahl about 10 years ago

  • Status changed from New to Closed
  • translation missing: en.field_remaining_hours set to 0.0

#3 Updated by Dave Vieglais over 9 years ago

  • Target version deleted (2014.16-Block.2.4)

#4 Updated by Robert Waltz over 9 years ago

  • Target version set to CCI-1.5.0

#5 Updated by Robert Waltz over 9 years ago

  • Target version changed from CCI-1.5.0 to CCI-1.4.1

#6 Updated by Robert Waltz over 9 years ago

  • Target version deleted (CCI-1.4.1)

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)