7.3. Enum options

Some options expects a value which is one of the values in an enum, f.ex. direction (-d in ls) where there’s INCOMING, OUTGOING and BOTH. All such values can be supplied in an easier way. It’s enough that you write the start of the value and the interpreter will find what you really meant. So if we look at ls again you can supply the -d option value like: out, in, i or even INCOMING.