2015-11-02 76 views

回答

3

可以使用find方法来查找现有exit命令,然后使用description方法来编辑它的帮助说明:

const exit = vorpal.find('exit'); 
if (exit) { 
    exit.description('My custom help description'); 
}