mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-29 17:57:18 +00:00
Document exit codes in Etcher CLI help (#379)
Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
ba9598be1a
commit
bd410bd88c
@ -21,6 +21,7 @@ const fs = require('fs');
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const yargs = require('yargs');
|
const yargs = require('yargs');
|
||||||
const utils = require('./utils');
|
const utils = require('./utils');
|
||||||
|
const EXIT_CODES = require('../src/exit-codes');
|
||||||
const packageJSON = require('../../package.json');
|
const packageJSON = require('../../package.json');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -34,6 +35,12 @@ module.exports = yargs
|
|||||||
// Usage help
|
// Usage help
|
||||||
.usage('Usage: $0 <image>')
|
.usage('Usage: $0 <image>')
|
||||||
.epilogue([
|
.epilogue([
|
||||||
|
'Exit codes:',
|
||||||
|
_.map(EXIT_CODES, function(value, key) {
|
||||||
|
const reason = _.map(_.split(key, '_'), _.capitalize).join(' ');
|
||||||
|
return ' ' + value + ' - ' + reason;
|
||||||
|
}).join('\n'),
|
||||||
|
'',
|
||||||
'If you need help, don\'t hesitate in contacting us at:',
|
'If you need help, don\'t hesitate in contacting us at:',
|
||||||
'',
|
'',
|
||||||
' GitHub: https://github.com/resin-io/etcher-cli/issues/new',
|
' GitHub: https://github.com/resin-io/etcher-cli/issues/new',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user