Skip to content

Commit

Permalink
fix dashs in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ziv-codefresh committed Jul 29, 2018
1 parent d79879f commit 5435b23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions lib/interface/cli/Command.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,14 @@ class Command {
}
let aliases = '';
if (option.value.alias) {
aliases += `- ${option.value.alias}`;
if (_.size(option.value.alias) === 1) {
aliases += `-${option.value.alias}`;
} else {
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.67",
"version": "0.8.68",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit 5435b23

Please sign in to comment.