[replacements]

# interpret --foo and -f as options:
(^|[\s]+|\[)(-|&#8212;|--)([\w]+)=\1<option>\2\3</option>

# repeatable, optional placeholder ("[FILE...]")
\[([A-Z]+)(\.\.\.|&#8230;)\]=<arg choice="opt" rep="repeat"><replaceable class="parameter">\1</replaceable></arg>

# [-f] indicates optional choice:
\[([^]]+)\]=<arg choice="opt">\1</arg>

# $poedit$ means command "poedit":
\$(.+)\$=<command>\1</command>
