lsof icon indicating copy to clipboard operation
lsof copied to clipboard

Improve output of `/configure --help` for disabled/enabled options by default

Open dilyanpalauzov opened this issue 1 year ago • 1 comments

./configure --help prints

  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-liblsof        build and install liblsof [default=yes]
  --enable-security       allow only the root user to list all open files
                          [default=no]
  --enable-no-sock-security
                          combined with --enable-security, allow anyone to
                          list anyone else's socket files [default=no]

For me, if the --help output contains --enable-Z this means by default Z is disabled. The opposite is also true: if --help prints --disable-Y this means that by default Z is enabled.

Please consider in the above output to remove “ [default=…]" and to substitute the first three enable above with disable.

I have written an article on this: https://ab.bapha.be/posts/help-output/.

dilyanpalauzov avatar Oct 16 '24 18:10 dilyanpalauzov

Pull requests are welcome.

jiegec avatar Oct 17 '24 03:10 jiegec