add rootCmd annotations
@@ -107,6 +107,11 @@ func rootCmdPersistentPostRun(cmd *cobra.Command, args []string) {
var rootCmd = &cobra.Command{
Use: "gnmic",
Short: "run gnmi rpcs from the terminal (https://gnmic.kmrd.dev)",
+ Annotations: map[string]string{
+ "--encoding": "ENCODING",
+ "--config": "FILE",
+ "--format": "FORMAT",
+ },
PersistentPreRun: rootCmdPersistentPreRun,
PersistentPostRun: rootCmdPersistentPostRun,
}
