From ad3866a8fe2575552410766e6add1e44dcd7fa67 Mon Sep 17 00:00:00 2001 From: Codefresh Date: Sun, 29 Jul 2018 10:59:04 +0300 Subject: [PATCH] fix dashs --- docs/config.toml | 2 ++ lib/interface/cli/Command.js | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/config.toml b/docs/config.toml index 11ec81f77..0b2224653 100644 --- a/docs/config.toml +++ b/docs/config.toml @@ -18,6 +18,8 @@ disableSearch = false # default is false disableNavChevron = true # set true to hide next/prev chevron, default is false highlightClientSide = false # set true to use highlight.pack.js instead of the default hugo chroma highlighter +[blackfriday] + smartDashes = false [outputs] home = [ "HTML", "RSS", "JSON"] diff --git a/lib/interface/cli/Command.js b/lib/interface/cli/Command.js index 2fe59ad2f..81f13627a 100644 --- a/lib/interface/cli/Command.js +++ b/lib/interface/cli/Command.js @@ -243,11 +243,11 @@ class Command { if (_.size(option.value.alias) === 1) { aliases += `-${option.value.alias}`; } else { - aliases += `- -${option.value.alias}`; + aliases += `--${option.value.alias}`; } } const defaultValue = option.value.default || ''; - res.options[group] += `- -${key} | ${aliases} | ${defaultValue} | ${description}\n`; + res.options[group] += `--${key} | ${aliases} | ${defaultValue} | ${description}\n`; }); res.examples = ''; diff --git a/package.json b/package.json index 37b5b1594..6111c3966 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codefresh", - "version": "0.8.68", + "version": "0.8.69", "description": "Codefresh command line utility", "main": "index.js", "preferGlobal": true,