veged / coa

Command-Option-Argument: Get more from defining your command line interface
MIT License
144 stars 22 forks source link

Aliases support (inspired by git) #26

Open arikon opened 11 years ago

arikon commented 11 years ago

One could define alias as cb = create -b and invoke bem cb block. COA should resolve cb alias and invoke bem create -b block command.

Also think of shell completion for aliases.

tadatuta commented 9 years ago

it'd also be great to have possibility to add aliases for options like

.opt()
    .name('noCache')
    .title('drop cache before running make')
    .short('n')
    .short('f') // alias for n
    .long('no-cache')
    .long('force') // alias for no-cache
    .flag()
    .end()