diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-03-01 13:57:55 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-03-01 14:11:36 -0500 |
commit | 6903b4975e38e29008e21222a7323d3920b804e8 (patch) | |
tree | c4b6c4113006dd371ea2cddd7840559843ae973e /Makefile | |
parent | dc8588eea147bbdde8bcc69f46c3f9004954a925 (diff) | |
download | mirror-ponymix-6903b4975e38e29008e21222a7323d3920b804e8.tar.gz mirror-ponymix-6903b4975e38e29008e21222a7323d3920b804e8.tar.bz2 mirror-ponymix-6903b4975e38e29008e21222a7323d3920b804e8.zip |
allow matching commands on prefixes
Allow for invocations such as "ponymix get-v" or "ponymix -d SB set-d".
Bail when the command is ambiguous and print the possible matches.
This necessarily means changing the return type of string_to_command to
return the whole pair<> out of the action map to allow for useful errors
when we do arg checking (as we don't necessarily have the full command
name from the user).
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions