From d4d6dfeaf989c46b9c777d733cfec1681db65730 Mon Sep 17 00:00:00 2001 From: Hugo Dias Date: Thu, 17 Oct 2019 13:52:18 +0100 Subject: [PATCH] fix: make init options look like go-ipfs (#2544) While still supporting camelCase --- src/cli/commands/init.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/commands/init.js b/src/cli/commands/init.js index 02fd90c675..a8c4f01b5f 100644 --- a/src/cli/commands/init.js +++ b/src/cli/commands/init.js @@ -23,12 +23,12 @@ module.exports = { default: '2048', describe: 'Number of bits to use in the generated RSA private key (defaults to 2048)' }) - .option('emptyRepo', { + .option('empty-repo', { alias: 'e', type: 'boolean', describe: "Don't add and pin help files to the local storage" }) - .option('privateKey', { + .option('private-key', { alias: 'k', type: 'string', describe: 'Pre-generated private key to use for the repo'