Old-Man-Programmer / tree

Tree for Unix/LInux
GNU General Public License v2.0
140 stars 31 forks source link

Allow no space between `-L` and its argument #7

Closed tgross35 closed 2 months ago

tgross35 commented 6 months ago

For example, this:

root@72c513cae592:/# tree -L1
tree: Missing argument to -L option.

Should act the same as this:

root@72c513cae592:/# tree -L 1
.
|-- bin -> usr/bin
|-- boot
|-- dev
|-- etc
|-- home
|-- lib -> usr/lib
|-- lib64 -> usr/lib64
|-- media
|-- mnt
|-- opt
|-- proc
|-- root
|-- run
|-- sbin -> usr/sbin
|-- srv
|-- sys
|-- tmp
|-- usr
`-- var

20 directories, 0 files

Probably the same for -o or any single-dash options that take an argument, I think this is fairly standard, just ever so slightly easier to type.

Awesome little tool this is, thanks for maintaining it :)

Old-Man-Programmer commented 2 months ago

This has been added to 2.1.3.

tgross35 commented 2 months ago

Excellent, thank you!