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

Mason James mtj at kohaaloha.com
Thu Aug 30 01:58:49 CEST 2012


On 2012-08-30, at 8:14 AM, Chris Cormack wrote:

> * 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



i'll have a go at writing a test for it :)


More information about the Koha-devel mailing list