Skip to content

Why not use an option parser? #9

Closed

Description

@samrocketman

Is there a reason you're rolling your own option parsing rather than using the well tested optparse or argparse? This regards the gitlab CLI utility.

Activity

  1. gpocentek commented on Nov 12, 2013

    @gpocentek
    Contributor

    On 2013-11-11 21:49, Sam Gleske wrote:

    Is there a reason you're rolling your own option parsing rather than
    using the well tested optparse or argparse?

    Most of the options are dynamically computed from the Gitlab class. I
    don't know if optparse and/or argparse are able to handle that kind of
    thing (never tested). If it's possible I agree that changing this would
    be nice. I'd sure appreciate a patch then :)

    Gauvain

  2. mxmader commented on Feb 27, 2014

    @mxmader

    +1 for argparse, the "de facto" option parser IMHO.
    here's a repo that I consider a decent reference implementation.

  3. gpocentek commented on May 12, 2015

    @gpocentek
    Contributor

    python-gitlab now uses argparse.

  4. samrocketman commented on May 13, 2015

    @samrocketman
    Author

    everything is awesome 👯

  5. locked as resolved and limited conversation to collaborators on Nov 29, 2021
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions