在 vorpal 应用程序的 »exit« 帮助文本中更改应用程序名称
Change App name in »exit« help text of vorpal app
输入 help vorpal 时说:
exit [options] Exits instance of Vorpal.
是否可以覆盖 Vorpal 一词?因为用户可能不知道 Vorpal 是什么,可能会感到困惑。
您可以使用find
method to find the existing exit
command, and then use the description
方法编辑其帮助说明:
const exit = vorpal.find('exit');
if (exit) {
exit.description('My custom help description');
}
输入 help vorpal 时说:
exit [options] Exits instance of Vorpal.
是否可以覆盖 Vorpal 一词?因为用户可能不知道 Vorpal 是什么,可能会感到困惑。
您可以使用find
method to find the existing exit
command, and then use the description
方法编辑其帮助说明:
const exit = vorpal.find('exit');
if (exit) {
exit.description('My custom help description');
}