little enhancements, supports dirs

This commit is contained in:
2023-02-22 20:28:10 +01:00
parent 19e5c6c057
commit 416317df63
3 changed files with 35 additions and 7 deletions

View File

@@ -68,6 +68,10 @@ func Execute() {
return completion(cmd, ShowCompletion)
}
if len(args) == 0 {
return errors.New("No files specified to upload!")
}
// errors at this stage do not cause the usage to be shown
cmd.SilenceUsage = true