mirror of
https://github.com/pgsty/minio.git
synced 2026-09-12 21:44:04 +03:00
cli: vendorize to new CLI package updates.
- Fix a new line issue for minioHelpTemplate. - Fixes #974
This commit is contained in:
+9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user