Skip to content

cmd上为什么找不到匹配的-env参数 #109

@1426919587

Description

@1426919587

在win上
go run main.go -env pro 可以运行

在cmd上报错
start go_build_yunhai.exe -env pro
Start-Process : 找不到与参数名称“env”匹配的参数。
所在位置 行:1 字符: 27

  • start go_build_yunhai.exe -env pro
  •                       ~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Start-Process],ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.StartProcessCommand

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions