code: func parseCommandArguments(cmd *cobra.Command) string {
  	if len(os.Args) == 0 {
  		return ""
  	}
  
  	flags := ""
  	parseFunc := func(flag *pflag.Flag, value string) error {
  		flags = flags + " --" + flag.Name
  		if set, ok := flag.Annotations["classified"]; !ok || len(set) == 0 {
  			flags = flags + "=" + value
  		} else {
  			flags = flags + "=CLASSIFIED"
  		}
  		return nil
  	}
  	var err error
  	err = cmd.Flags().ParseAll(os.Args[1:], parseFunc)
  	if err != nil || !cmd.Flags().Parsed() {
  		return ""
  	}
  
  	args := ""
  	if arguments := cmd.Flags().Args(); len(arguments) > 0 {
  		args = " " + strings.Join(arguments, " ")
  	}
  
  	base := filepath.Base(os.Args[0])
  	return base + args + flags
  }
docs: // parseCommandArguments will stringify and return all environment arguments ie. a command run by a client
  // using the factory.
  // Set showSecrets false to filter out stuff like secrets.