Mike Bianchi <mbian...@foveal.com> wrote: |On Tue, Mar 03, 2015 at 01:00:35AM -0500, Eric Andrew Lewis wrote: |> In short, I'd like to make a program that does this: |> |> $ explain "rm -rf *" |> rm -rf * |> └── rm remove files or directories |> ├── -r remove directories and their contents recursively |> ├── -f ignore nonexistent files, never prompt |> └── * Remove (unlink) files matching this text pattern. | |Are you aware of rm --help ? | |The --help argument is very common in commands.
Long options are not POSIX standardised, short options thus seem to be more portable. :-h --steffen