// parseArgFlag parses the passed command line --args into a key value map.
parseArgFlag parses the passed command line --args into a key value map.
// parseArgFlag parses the passed command line -- args into a key value map .
func parseArgFlag(cmd *cobra.Command) (map[string]string, error) {
	flags := cmd.Flags()
	cmdArgsRaw, err := flags.GetStringArray("arg")
	if err != nil {
		return nil, err
	}
	cmdArgs, err := parseArgs(cmdArgsRaw)
	if err != nil {
		return nil, err
	}
	return cmdArgs, nil
}
func parseArgFlag ( cmd * cobra . Command ) ( map [ string ] string , error ) { flags := cmd . Flags ( ) cmdArgsRaw , err := flags . GetStringArray ( " " ) if err != nil { return nil , err } cmdArgs , err := parseArgs ( cmdArgsRaw ) if err != nil { return nil , err } return cmdArgs , nil }
parseArgFlag parses the passed command line --args into a key value map.
parseArgFlag parses the passed command line -- args into a key value map .