Merge pull request #2456 from ethereum/remixdHelp

update remixd usage
pull/5370/head
yann300 3 years ago committed by GitHub
commit 3d25f6bdbf
  1. 9
      libs/remixd/src/bin/remixd.ts

@ -60,13 +60,12 @@ function errorHandler (error: any, service: string) {
program.version(version, '-v, --version') program.version(version, '-v, --version')
program program
.usage('-s <shared folder>') .description('Establish a two-way websocket connection between the local computer and Remix IDE for a folder')
.description('Provide a two-way connection between the local computer and Remix IDE') .option('-u, --remix-ide <url>', 'URL of remix instance allowed to connect')
.option('-u, --remix-ide <url>', 'URL of remix instance allowed to connect to this web sockect connection') .option('-s, --shared-folder <path>', 'Folder to share with Remix IDE (Default: CWD)')
.option('-s, --shared-folder <path>', 'Folder to share with Remix IDE')
.option('-r, --read-only', 'Treat shared folder as read-only (experimental)') .option('-r, --read-only', 'Treat shared folder as read-only (experimental)')
.on('--help', function () { .on('--help', function () {
console.log('\nExample:\n\n remixd -s ./ -u http://localhost:8080') console.log('\nExample:\n\n remixd -s ./shared_project -u http://localhost:8080')
}).parse(process.argv) }).parse(process.argv)
// eslint-disable-next-line // eslint-disable-next-line

Loading…
Cancel
Save