exa/xtests
Benjamin Sago a8bf990674 Tie value suggestions to their arguments
This commit changes the definition of Arg so that it knows about which values it can accept, and can display them in the help text. They were already being shown in the help text, but they were passed in separately, so one argument could show two different sets of options if it wanted. Now, the argument itself knows whether there are suggestions, so it doesn’t have to be passed in separately.

This means we can use it for other things, including listing choices when an option is missed out, without having to repeat the list.

With Misfire::BadArgument now only having two fields, it’s not worth using a constructor function anymore.
2017-09-14 01:22:37 +01:00
..
2017-07-04 17:48:30 +01:00
2017-09-13 23:26:06 +01:00
2017-08-19 13:57:56 +01:00
2017-04-29 10:56:17 +01:00
2017-09-13 22:37:51 +01:00
2017-05-17 23:12:27 +01:00
2017-05-17 23:12:27 +01:00
2017-05-17 23:12:27 +01:00
2017-08-20 17:33:39 +01:00
2017-08-20 17:33:39 +01:00
2017-08-20 17:33:39 +01:00
2017-08-20 17:33:39 +01:00
2017-08-20 17:33:39 +01:00
2017-08-28 15:10:29 +01:00
2017-08-28 15:10:29 +01:00
2017-08-28 15:10:29 +01:00
2017-09-02 12:53:08 +01:00
2017-09-02 12:53:08 +01:00
2017-08-28 15:10:29 +01:00
2017-08-28 15:10:29 +01:00
2017-09-02 12:53:08 +01:00
2017-08-28 15:10:29 +01:00
2017-08-28 15:10:29 +01:00
2017-08-28 15:10:29 +01:00
2017-08-28 15:10:29 +01:00
2017-08-28 15:10:29 +01:00
2017-09-02 12:53:08 +01:00
2017-08-28 15:10:29 +01:00
2017-08-28 18:24:20 +01:00
2017-08-28 15:10:29 +01:00
2017-09-13 23:26:06 +01:00
2017-06-28 18:41:31 +01:00
2017-06-28 18:41:31 +01:00
2017-06-28 18:41:31 +01:00
2017-06-28 18:41:31 +01:00
2017-06-28 18:41:31 +01:00
2017-06-28 18:41:31 +01:00
2017-04-30 11:58:29 +01:00
2017-08-11 12:36:14 +01:00
2017-08-11 12:36:14 +01:00
2017-05-30 15:32:11 +01:00
2017-05-30 15:32:11 +01:00
2017-06-29 14:52:02 +01:00
2017-06-29 14:52:02 +01:00

Extra tests

These extra tests are intended to be run from a Vagrant VM that has already had its environment set up -- see the section in the README for more details.