how to add -h parameter in script
I have a script is "myscript",what shold I do if I want it show some help information when I run mysciprt -h!!!!!Thanks, I am a beginer!
|
Depending what language you're doing it in? More information please.
|
bash shell in redhat
|
Code:
#!/bin/bash |
You might also want to "man 1 getopt" for a more general way of taking comand line arguments. Unfortunately it's a little long and my system doesn't seem to have the examples mentioned in the doc :(
|
All times are GMT -5. The time now is 04:53 AM. |