cli: vendorize to new CLI package updates.

- Fix a new line issue for minioHelpTemplate.
- Fixes #974
This commit is contained in:
Harshavardhana
2015-11-21 08:57:38 -08:00
parent ffa22cf31e
commit ab3fd8ea7f
13 changed files with 1437 additions and 100 deletions
+9
View File
@@ -193,6 +193,15 @@ func (a Args) Tail() Args {
return []string{}
}
// Head - Return the rest of the arguments (not the last one)
// or else an empty string slice
func (a Args) Head() Args {
if len(a) == 1 {
return a
}
return []string(a)[:len(a)-1]
}
// Present - Checks if there are any arguments present
func (a Args) Present() bool {
return len(a) != 0