From b01c9d88221215076caf4d838d7803e13cf630ec Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Tue, 1 Dec 2020 16:58:22 -0800 Subject: [PATCH] Added -help --- modules/interactive.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/modules/interactive.js b/modules/interactive.js index abb7057..b16bb14 100644 --- a/modules/interactive.js +++ b/modules/interactive.js @@ -133,6 +133,30 @@ limitations under the License. process.exit(); } + if (process.argv.includes('-help')) + { + console.log("\nYou can run the text version from the command line with the following command(s): "); + if ((msh.InstallFlags & 1) == 1) + { + console.log('./' + process.execPath.split('/').pop() + ' -connect'); + } + if ((msh.InstallFlags & 2) == 2) + { + if (s) + { + console.log('./' + process.execPath.split('/').pop() + ' -update'); + console.log('./' + process.execPath.split('/').pop() + ' -uninstall'); + } + else + { + console.log('./' + process.execPath.split('/').pop() + ' -install'); + console.log('./' + process.execPath.split('/').pop() + ' -install --installPath="/alternate/path"'); + } + } + console.log(''); + process.exit(); + } + if ((msh.InstallFlags & 1) == 1) { buttons.unshift('Connect');