Skip to main content
Source Link

How to get help text on sub-commands?

I am looking for a way to bring help text on sub commands such as apt list.

For example, if I write apt --help, I am getting:

apt 1.2.26 (amd64) Usage: apt [options] command

apt is a commandline package manager and provides commands for searching and managing as well as querying information about packages. It provides the same functionality as the specialized APT tools, like apt-get and apt-cache, but enables options more suitable for interactive use by default.

Most used commands:
list - list packages based on package names
search - search in package descriptions

And I would like to go deeper, and get help on apt list. If I try apt list --help, I am getting same exact help text of apt --help. I know list command supports apt list --upgradable parameter, but I could not see how to show it in the help text.

Any solution on this?