Skip to content

Positional arguments? #46

Open
Open

Description

@tripulse

The feature section on the README talks about positional arguments but no example has been shown and I can't find how it can be done even after reading the code.

Activity

  1. cofyc commented on Jul 23, 2021

    @cofyc
    Owner

    positional arguments are remainder arguments after all positional optional arguments are processed and removed, see the example code here

  2. tripulse commented on Jul 23, 2021

    @tripulse
    Author

    after all positional arguments are processed and removed

    you mean optional arguments, right?

  3. cofyc commented on Jul 23, 2021

    @cofyc
    Owner

    yes, my typo

  4. tripulse commented on Jul 23, 2021

    @tripulse
    Author

    oh okay

  5. tripulse commented on Jul 23, 2021

    @tripulse
    Author

    but you have to parse the value types manually, wouldn't it be more easier that we specify positonals in the argparse_option array so it takes care of it.

  6. tripulse commented on Nov 27, 2021

    @tripulse
    Author

    but wait, that modifies a const char**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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