Skip to content

Commit

Permalink
fix dashs
Browse files Browse the repository at this point in the history
  • Loading branch information
ziv-codefresh committed Jul 29, 2018
1 parent 5435b23 commit ad3866a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 2 additions & 2 deletions lib/interface/cli/Command.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codefresh",
"version": "0.8.68",
"version": "0.8.69",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit ad3866a

Please sign in to comment.