mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +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 yargs = require('yargs');
|
||||
const utils = require('./utils');
|
||||
const EXIT_CODES = require('../src/exit-codes');
|
||||
const packageJSON = require('../../package.json');
|
||||
|
||||
/**
|
||||
@ -34,6 +35,12 @@ module.exports = yargs
|
||||
// Usage help
|
||||
.usage('Usage: $0 <image>')
|
||||
.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:',
|
||||
'',
|
||||
' GitHub: https://github.com/resin-io/etcher-cli/issues/new',
|
||||
|
Loading…
x
Reference in New Issue
Block a user