fix(cmd/ry): silence cobra error dup + fix bucket/dns Use&Args warts

This commit is contained in:
2026-08-13 12:21:36 +08:00
parent 66a7bdcbd5
commit 706fe752a0
3 changed files with 7 additions and 7 deletions
+2
View File
@@ -76,6 +76,8 @@ Use "ry [command] --help" for more information about a command.`,
}
func init() {
rootCmd.SilenceErrors = true
rootCmd.SilenceUsage = true
cfgPath = config.DefaultPath()
rootCmd.PersistentFlags().StringVar(&flagAPIKey, "apikey", "", "Rainyun API key")
rootCmd.PersistentFlags().StringVarP(&flagOutput, "output", "o", "", "Output format: table, json, yaml, raw")