Overview
| Artifact ID: | 434764c05c202f527db8dc6554fbedd96b8daf9b |
|---|---|
| Ticket: | f27930150a84a15b8becb835dae45674fa41b0c5
namespace ensemble subcommands with the empty string for a name |
| User & Date: | dkf on 2017-05-02 10:31:01 |
Changes
- closedate changed to: "2457875.93821101"
- closer changed to: "dkf"
- icomment:
The behaviour you describe is correct. There is no bug. <p> When an ensemble has an empty <tt>-map</tt> (and empty <tt>-subcommands</tt> list), it uses the exported commands of the namespace as the set of subcommands. When an ensemble has a non-empty <tt>-map</tt>, it uses the keys of that map to determine what the set of subcommands is. <i>In both cases</i>, it then finds whether there is an exact match for the subcommand name against its set of possible subcommands, and if there is no exact match and the <tt>-prefix</tt> option is true (the default), then sees whether the provided subcommand name is a prefix of exactly one subcommand name. (If there's two or more subcommands that could match, that's an error. The empty string is a prefix of all other strings of course.)
- login: "dkf"
- mimetype: "text/html"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "dkf"