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 {
240240 }
241241 let aliases = '' ;
242242 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+ }
244248 }
245249 const defaultValue = option . value . default || '' ;
246- res . options [ group ] += `--${ key } | ${ aliases } | ${ defaultValue } | ${ description } \n` ;
250+ res . options [ group ] += `- -${ key } | ${ aliases } | ${ defaultValue } | ${ description } \n` ;
247251 } ) ;
248252
249253 res . examples = '' ;
Original file line number Diff line number Diff line change 11{
22 "name" : " codefresh" ,
3- "version" : " 0.8.67 " ,
3+ "version" : " 0.8.68 " ,
44 "description" : " Codefresh command line utility" ,
55 "main" : " index.js" ,
66 "preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments