URL: <https://savannah.gnu.org/support/?111051>
Summary: New commands: `-h`, `--help` Group: The GNU Bourne-Again SHell Submitter: None Submitted: Thu 18 Apr 2024 07:03:31 AM UTC Category: None Priority: 5 - Normal Severity: 1 - Wish Status: None Privacy: Public Assigned to: None Originator Email: woj...@gmail.com Open/Closed: Open Discussion Lock: Any Operating System: GNU/Linux _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Thu 18 Apr 2024 07:03:31 AM UTC By: Anonymous Yesterday on my answer: 'You can always use `-h` / `--help`' they gave me reply: 'There isn't command `-h` on my Limux' My first reaction was a facepalm, but then I thought: How was he supposed to know that? Very new users don't fully understand command line concepts. They don't know how to start. How to get help. They don't know things that are "obvious" to people working in the console. ---- Therefore, after calling -h/--help, I suggest displaying a message like: You have just used the `-h` argument, which is used to get help on a specific command. Arguments are given after the program name and are used to modify the program's operation. E.g.: usage: somecommand --help This will display a summary of the command usage (list of available options). If you need more information about the command you can use: man somecommand To display text only on one screen, process the command result with another more/less command, e.g.: somecommand --help | more You can also search for a word in the displayed result: somecommand --help | grep word BTW: Pressing [Esc] or [Q] in many cases allows you to return to the shell. REMEMBER: Sometimes you need to put a colon between them to avoid turning into a random character generator. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/support/?111051> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/