From 68af59cf2d66576cf56b19ac8cc8357e2d63edda Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Thu, 13 Jun 2024 10:32:49 -0700 Subject: [PATCH 1/5] refactor: inline addRunOptions --- packages/agoric-cli/src/main.js | 70 ++++++++++++++++----------------- 1 file changed, 33 insertions(+), 37 deletions(-) diff --git a/packages/agoric-cli/src/main.js b/packages/agoric-cli/src/main.js index ad008f927aa..2e1e9a69d5c 100644 --- a/packages/agoric-cli/src/main.js +++ b/packages/agoric-cli/src/main.js @@ -280,29 +280,6 @@ const main = async (progname, rawArgs, powers) => { return subMain(followMain, ['follow', ...pathSpecs], opts); }); - const addRunOptions = cmd => - cmd - .option( - '--allow-unsafe-plugins', - `CAREFUL: installed Agoric VM plugins will also have all your user's privileges`, - false, - ) - .option( - '--hostport ', - 'host and port to connect to VM', - '127.0.0.1:8000', - ) - .option( - '--need ', - 'comma-separated names of subsystems to wait for', - 'local,agoric,wallet', - ) - .option( - '--provide ', - 'comma-separated names of subsystems this script initializes', - '', - ); - baseCmd('run