Menu

#8 "append_const" action

closed
5
2004-11-09
2004-10-19
No

While working with optparse/optik, I've found usefull a
couple of new actions.
While I did implement most of them subclassing Option,
OptionParser, HelpFormatter and/or children, I thought
I'd propose them here as they might be usefull for
other users as well.

One of them is the new action "append_const", well, you
can guess what i does.

A patch against latest CVS is attached.

Discussion

  • Andrea Bocci

    Andrea Bocci - 2004-10-19

    Implementation (patch against CVS)

     
  • Andrea Bocci

    Andrea Bocci - 2004-10-20
    • assigned_to: gward --> nobody
     
  • Greg Ward

    Greg Ward - 2004-10-26

    Logged In: YES
    user_id=14422

    Looks pretty straightforward. Can you please post to
    optik-users and explain what you use this for? I'm curious,
    but it will also make it easier to accept your patch if I
    know why it's needed!

    (Another thing that would help: provide a patch to
    test/test_optik.py at the same time.)

     
  • Greg Ward

    Greg Ward - 2004-10-26
    • assigned_to: nobody --> gward
     
  • Greg Ward

    Greg Ward - 2004-11-09

    Logged In: YES
    user_id=14422

    Just checked in Andrea's patch (from the mailing list) in
    r462. Docs patched in r463.

     
  • Greg Ward

    Greg Ward - 2004-11-09
    • status: open --> closed
     

Log in to post a comment.