mainThe GNU Bourne-Again SHell - Support: sr #111051, New commands: `-h`, `--help`

 
 

sr #111051: New commands: `-h`, `--help`

Submitter:  None
Submitted:  Thu 18 Apr 2024 07:03:31 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  1 - Wish Status:  Wont Do
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 18 Apr 2024 03:46:03 PM UTC, comment #1: 

A better approach would be to direct this user to one of the many bash tutorials available on the net.

It seems like adding this particular command is a reaction to a specific response prompted by your advice. It's not a general feature.

Chet Ramey <chet>
Group administrator
Thu 18 Apr 2024 07:03:31 AM UTC, original submission:  

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by chet (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-04-18 chet StatusNone Wont Do

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code