exa/src
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
..
bin Show a warning when running ‘exa -ltr’ 2017-09-13 23:47:19 +01:00
fs Add more modified date aliases 2017-09-13 23:26:06 +01:00
info Extract trait above file name colours 2017-08-26 20:43:47 +01:00
options Tie value suggestions to their arguments 2017-09-14 01:22:37 +01:00
output Reword this comment 2017-09-13 22:12:11 +01:00
style Move FileStyle to the same options file as Colours 2017-09-03 19:50:40 +01:00
exa.rs Redo Git implementation to allow --git --recurse 2017-09-01 19:13:47 +01:00