Added -help command

Bryan Roe committed Dec 1, 2020 at 17:04 UTC f3b38ece1a00239c9a2b4f75c75cfd9d796e09ec
1 file changed +24
agents/meshinstall-linux.js
+24
@@ -85,6 +85,30 @@ if (process.argv.includes('-mesh'))
85 process.exit();
86 }
87
88 +if (process.argv.includes('-help'))
89 +{
90 + console.log("\nYou can run the text version from the command line with the following command(s): ");
91 + if ((msh.InstallFlags & 1) == 1)
92 + {
93 + console.log('./' + process.execPath.split('/').pop() + ' -connect');
94 + }
95 + if ((msh.InstallFlags & 2) == 2)
96 + {
97 + if (s)
98 + {
99 + console.log('./' + process.execPath.split('/').pop() + ' -update');
100 + console.log('./' + process.execPath.split('/').pop() + ' -uninstall');
101 + }
102 + else
103 + {
104 + console.log('./' + process.execPath.split('/').pop() + ' -install');
105 + console.log('./' + process.execPath.split('/').pop() + ' -install --installPath="/alternate/path"');
106 + }
107 + }
108 + console.log('');
109 + process.exit();
110 +}
111 +
112 if ((msh.InstallFlags & 1) == 1)
113 {
114 buttons.unshift('Connect');