Skip to content

arguments not working #32

@acornejo

Description

@acornejo

I tried docopt.c for the first time today.

Running the example doesn't work, for example, see the following output:

$ ./example ship test move 4 5 --speed=20
Commands
    mine == false
    move == true
    create == false
    remove == false
    set == false
    ship == true
    shoot == false
Arguments
    x == (null)
    y == (null)
Flags
    --drifting == false
    --help == false
    --moored == false
    --version == false
Options
    --speed == 20

As you can see, the move command and the --speed option were read correctly, but the <x> and <y> arguments were NOT populated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions