Context Navigation

Contents

Description

This plugin provides an advanced version of the parse_args function for WikiMacros.

This function is used in WikiMacros to parse the macro arguments. This enhanced version is meant as a replacement of trac.wiki.macros.parse_args and supports several advanced options, see section #Parameters. The most important feature is the support for quoting the delimiter, eg key1=val1, key2="some,text", key3=val3 will correctly return some,text as the value of key2. The original parse_args function would return "some and handle text" as separate argument.

Parameters

args

The argument string; 'content' in `expand_macro. This is the only mandatory argument.

strict

Enables strict checking of keys.

multi

Enables folding of muliple given keys into list.
If set to True, values of multiple given keys will be returned
as list, but single given keys will return a scalar.
If set to a list, only the values of the listed keys will be
returned as list, but always as list even when there is only one
value.
If this list contains '*', all values are always
returned as list.

listonly

If true only a list is returned, no directionary.

minlen

Extend returned list to given minimum length. Only used when
listonly=True.