User Tools

Site Tools


argp.sh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
argp.sh [2018/12/28 23:05]
admin
argp.sh [2018/12/29 00:54] (current)
admin
Line 1: Line 1:
 ===== argp.sh ===== ===== argp.sh =====
  
-**argp.sh**(1) is a **bash**(1) wrapper around **getopt**(1) to make life much easier for script developers. It's used in most of my scripts - look at them for examples of use. There'​s just one essential file to install - the script itself. Put it somewhere on your path, typically in ''/​usr/​local/​bin''​.+**argp.sh**(1) is a **bash**(1) wrapper around **getopt**(1) (( 
 +See the [[https://​www.gnu.org/​software/​libc/​manual/​html_node/​Argument-Syntax.html | rules ]] for processing options to see just how hard it is without **getopt**(1) !!!)) to make life much easier for script developers. It's used in most of my scripts - look at them for examples of use. There'​s just one essential file to install - the script itself. Put it somewhere on your path, typically in ''/​usr/​local/​bin''​.
  
 To use **argp.sh**(1),​ a script pipes in a description of its options (in XML or plain text) and gets back the variables as processed by **getopt**(1) - as a plus it also provides automatic help and man page production. ​ To use **argp.sh**(1),​ a script pipes in a description of its options (in XML or plain text) and gets back the variables as processed by **getopt**(1) - as a plus it also provides automatic help and man page production. ​
Line 116: Line 117:
  
  
-See the [[https://​www.gnu.org/​software/​libc/​manual/​html_node/​Argument-Syntax.html | rules ]] for processing options to see just how hard it is without **getopt**(1) !!! 
  
argp.sh.txt · Last modified: 2018/12/29 00:54 by admin