1

输入帮助 vorpal 时说:

exit [options]   Exits instance of Vorpal.

是否可以覆盖 Vorpal 这个词?因为用户可能不知道 Vorpal 是什么并且可能会感到困惑。

4

1 回答 1

3

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');
}
于 2015-11-02T17:43:24.650 回答