User Tools

Site Tools


c

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
c [2016/01/03 23:44] adminc [2020/10/17 03:05] (current) – ↷ Links adapted because of a move operation 114.119.151.1
Line 79: Line 79:
 ====exit values etc==== ====exit values etc====
 Unless you've got a really good excuse, the program should exit(0) on success and non-zero on failure (note that exit code can only be up to 8-bits long). Unless you've got a really good excuse, the program should exit(0) on success and non-zero on failure (note that exit code can only be up to 8-bits long).
-As with [[DecentBash]], the program should send error messages (prefixed with the program name) to stderr, output to stdout. It should recognise -h (no matter what) and possibly --help and print help to stdout (and return 0!). -v and --verbose are also pretty standard.+As with [[unixscripts:3-decentbash]], the program should send error messages (prefixed with the program name) to stderr, output to stdout. It should recognise -h (no matter what) and possibly --help and print help to stdout (and return 0!). -v and --verbose are also pretty standard.
  
 In fact, why not use argp(3) to make option processing easy? In fact, why not use argp(3) to make option processing easy?
c.txt · Last modified: 2020/10/17 03:05 by 114.119.151.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki