llearn
Version:
Bad-ass developers create awesome apps
22 lines (19 loc) • 522 B
JavaScript
/* ------[Program start here]---------- */
function main () {
Command_ParameterCheck()
.then(mainCode)
.catch((error) => {
// console.error(error.stack);
// console.trace(); // In order to trace the source better, comment out the catch
showError(error) // ll showerror
})
}
main()
/* ------------------------------ */
/* Main code of the application */
function mainCode (option) {
if (option.topic === 'howto') {
Command_helpDetail()
Command_help()
}
}