docopt.c icon indicating copy to clipboard operation
docopt.c copied to clipboard

Example not working

Open andreas-jonsson opened this issue 4 years ago • 0 comments

Generating code using the "Naval Fate" example produces broken header. Line 97 & 98.

struct DocoptArgs {
    
    /* commands */
    size_t create;
    size_t mine;
    size_t move;
    size_t remove;
    size_t set;
    size_t ship;
    size_t shoot;
    /* arguments */
    char *name;
{indent}char *x;
{indent}char *y;
    /* options without arguments */
    size_t drifting;
    size_t help;
    size_t moored;
    size_t version;
    /* options with arguments */
    char *speed;
    /* special */
    const char *usage_pattern;
    const char *help_message[16];
};

I'm running Python 3.10.0

andreas-jonsson avatar Feb 11 '22 08:02 andreas-jonsson