Skip to content

Windows command line error messages are confusing, but here's the solution #12

@zackees

Description

@zackees

On Windows 10:

This command:

docker2exe-windows-amd64.exe --name fastled

Produces the following help file instructing me to add in --image

NAME:
   docker2exe - create an executable from a docker image

USAGE:
   docker2exe-windows-amd64.exe [global options] command [command options] [arguments...]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --name value               name of your executable
   --image value              name of your docker image
   --embed                    embed a docker image in the binary (default: false)
   --workdir value, -w value  mount the user's current directory in the image
   --env value, -e value      whitelist environment variables
   --volume value, -v value   bind mount a volume
   --output value             directory to output
   --target value, -t value   platforms and architectures to target
   --module value             name of generated golang module
   --help, -h                 show help (default: false)
Required flag "image" not set

But when I do so:

C:\Users\niteris\dev\fastled-wasm>docker2exe-windows-amd64.exe --name fastled --image fastled
go mod init github.com/DESKTOP-I3718DO\Zach Vorhies/fastled
go: 'go mod init' accepts at most one argument
make: *** [go.mod] Error 1
exit status 2

I get this error that makes no sense to me. But I'm not a go programmer.

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