[Koha-devel] Coding guidelines for command-line scripts

Chris Cormack chrisc at catalyst.net.nz
Wed Aug 29 22:14:53 CEST 2012


* Galen Charlton (gmc at esilibrary.com) wrote:
> Hi,
> 
> On 08/29/2012 10:14 AM, Owen Leonard wrote:
> >Would everyone agree that new command-line scripts must accept
> >"--help" (and include relevant help, of course) ?
> 

+1

> 
> >Should it also be the standard that command-line scripts should not
> >perform any action unless an argument is passed?
> 

+1

> 
> >Anything else?
> 
> Command-line scripts should return an exit code of 0 on success and
> not-0 on failure.
> 
+1

Chris

-- 
Chris Cormack
Catalyst IT Ltd.
+64 4 803 2238
PO Box 11-053, Manners St, Wellington 6142, New Zealand


More information about the Koha-devel mailing list