code: func Dir() (dir string, err error) {
  	if flg := flag.CommandLine.Lookup(DirFlag); flg != nil {
  		val := flg.Value.String()
  		if strings.HasPrefix(val, ".") {
  			cwd, err := os.Getwd()
  			if err != nil {
  				return cwd, err
  			}
  			return filepath.Join(cwd, val), nil
  		}
  		return val, nil
  	}
  	return "", nil
  }
docs: // Dir returns config directory by evaluating the flag DirFlag. It interprets "." as current working directory.