view vendor/pear/console_commandline/docs/examples/ex5.xml @ 41:d2414df68d78

Updated by Alex S Grebenschikov (www.poralix.com) to make it compatible with RoundCube 1.3.0
author Charlie Root
date Fri, 24 Jan 2025 14:20:15 -0500
parents 1e000243b222
children
line wrap: on
line source

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<command>
    <description>A great program that can list foo elements !</description>
    <version>1.0.0</version>
    <option name="verbose">
        <short_name>-v</short_name>
        <long_name>--verbose</long_name>
        <description>turn on verbose output</description>
        <action>StoreTrue</action>
    </option>
    <command>
        <name>list</name>
        <description>output the list of foo elements</description>
        <argument name="item">
            <description>May be either "foo", "bar", "baz"</description>
            <multiple>true</multiple>
            <choices>
                <choice>foo</choice>
                <choice>bar</choice>
                <choice>baz</choice>
            </choices>
        </argument>
    </command>
</command>