mojo should not return 0 when printing usage information

Bug #1540994 reported by Neale Pickett
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mojo: Continuous Delivery for Juju
Confirmed
Low
Unassigned

Bug Description

We just finished debugging an issue wherein mojo was returning 0 when we passed the wrong arguments, giving our CI run no indication of a problem:

ubuntu@juju-prod45-ues-ci-jenkaas-is-mojo-ci-machine-2:/var/lib/jenkins$ /usr/bin/mojo run --project mojo-ue-jenkaas --series trusty --stage ue/mojo-ue-jenkaas/staging 351-ue-mojo-ue-jenkaas-staging &>/dev/null; echo $?
0

Mojo should return non-zero when command-line arguments are incorrect. EX_USAGE (64) as defined in /usr/include/sysexits.h seems appropriate.

Tags: papercut
Tom Haddon (mthaddon)
Changed in mojo:
status: New → Confirmed
importance: Undecided → Low
tags: added: papercut
Revision history for this message
Tom Haddon (mthaddon) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.