How do I mix positional arguments and options?

7 views
Skip to first unread message

Jason Baker

unread,
Sep 30, 2009, 1:43:02 PM9/30/09
to paver
I want to write a paver script to do our svn branching for us. I
would like the script to accept commands somewhat like the following:

paver branch project_name:branch_name project_name2:branch_name2 -
m "Commit message"

But it doesn't seem as though paver has any way to do that with
consume_args or cmdopts. Is there any other way to do this that I'm
missing?

Kevin Dangoor

unread,
Oct 4, 2009, 9:54:48 PM10/4/09
to pa...@googlegroups.com
I would think you could do that with consume_args. That should just pass along everything that remains on the command line.

Kevin
--
Kevin Dangoor

work: http://labs.mozilla.com/
email: k...@blazingthings.com
blog: http://www.BlueSkyOnMars.com
Reply all
Reply to author
Forward
0 new messages