输入帮助 vorpal 时说:
exit [options] Exits instance of Vorpal.
是否可以覆盖 Vorpal 这个词?因为用户可能不知道 Vorpal 是什么并且可能会感到困惑。
输入帮助 vorpal 时说:
exit [options] Exits instance of Vorpal.
是否可以覆盖 Vorpal 这个词?因为用户可能不知道 Vorpal 是什么并且可能会感到困惑。
You can use the find
method to find the existing exit
command, and then use the description
method to edit its help description:
const exit = vorpal.find('exit');
if (exit) {
exit.description('My custom help description');
}