Giter VIP home page Giter VIP logo

Comments (2)

tomghuang avatar tomghuang commented on July 3, 2024

Hi @tadejg , I've confirmed the issue and I'll check how to resolve it. Thanks for raising this problem.

from argtable3.

tomghuang avatar tomghuang commented on July 3, 2024

Hi @tadejg , this behavior is caused by the behavior of getopt. Since Argtable3 is based on getopt, it also has this behavior.

A workaround is using -- to tell getopt that all the command-line options after -- should be treated as untagged options (in Argtable3, an untagged option is an option that does not have both short and long option names). In other words, you have to use:

$ set <key> -- <value>
$ set -- <key> <value>

I've verified that adding -- can resolve this issue. Here is how I setup the table:

struct arg_str* key = arg_str1(NULL, NULL, "<key>", "key to set");
struct arg_int* value = arg_int1(NULL, NULL, "<value>", "value to set");
struct arg_end* end = arg_end(20);
void* argtable[] = {key, value, end};

from argtable3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.