[Freeipa-devel] [PATCH] Generate additional positional arguments for baseldap commands from takes_args.

Pavel Zuna pzuna at redhat.com
Tue Oct 5 14:43:56 UTC 2010


takes_args defined in a baseldap subclass is now transformed into positional 
arguments that go after primary keys. Before this patch, takes_args in crud 
subclasses were ignored.

example:

--- snip ---

class user_something(LDAPRetrieve):
     takes_args = (
         Str('randomarg'),
     )

--- snip ---

# ipa help something
Usage: ipa [global-options] user-something LOGIN RANDOMARG


Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pzuna-freeipa-0027-takesargs.patch
Type: text/x-patch
Size: 1838 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20101005/ffc97a64/attachment.bin>


More information about the Freeipa-devel mailing list