File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -240,10 +240,14 @@ class Command {
240
240
}
241
241
let aliases = '' ;
242
242
if ( option . value . alias ) {
243
- aliases += `- ${ option . value . alias } ` ;
243
+ if ( _ . size ( option . value . alias ) === 1 ) {
244
+ aliases += `-${ option . value . alias } ` ;
245
+ } else {
246
+ aliases += `- -${ option . value . alias } ` ;
247
+ }
244
248
}
245
249
const defaultValue = option . value . default || '' ;
246
- res . options [ group ] += `--${ key } | ${ aliases } | ${ defaultValue } | ${ description } \n` ;
250
+ res . options [ group ] += `- -${ key } | ${ aliases } | ${ defaultValue } | ${ description } \n` ;
247
251
} ) ;
248
252
249
253
res . examples = '' ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.8.67 " ,
3
+ "version" : " 0.8.68 " ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments