This website requires JavaScript.
Explore
Help
Register
Sign In
Llewellyn
/
exa
Watch
1
Star
0
Fork
0
You've already forked exa
mirror of
https://github.com/Llewellynvdm/exa.git
synced
2024-11-18 02:05:11 +00:00
Code
Issues
Projects
Releases
Wiki
Activity
c7b69f09de
exa
/
xtests
/
error_value
2 lines
65 B
Plaintext
Raw
Normal View
History
Unescape
Escape
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 00:22:37 +00:00
Flag --time needs a value (choices: modified, accessed, created)
Reference in New Issue
Copy Permalink