Argparse class method based instantiation

Discussion in 'Python' started by Joseph L. Casale, Jan 2, 2014.

  1. I have an Python3 argparse implementation that is invoked as a method from an imported
    class within a users script __main__.

    When argparse is setup in __main__ instead, all the help switches produce help then exit.
    When a help switch is passed based on the above implementation, they are ignored?

    Anyone seen this and or know of a workaround?

    Thanks,
    jlc
     
    Joseph L. Casale, Jan 2, 2014
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Martin
    Replies:
    1
    Views:
    399
    Mike Treseler
    Dec 13, 2006
  2. Replies:
    1
    Views:
    617
    Salt_Peter
    Dec 25, 2006
  3. Ed
    Replies:
    1
    Views:
    359
  4. Victor Hooi
    Replies:
    0
    Views:
    344
    Victor Hooi
    Jul 18, 2011
  5. Dave Mihalik
    Replies:
    6
    Views:
    168
    Dave Mihalik
    Jul 28, 2006
Loading...

Share This Page