short flags for options added

pull/1344/head
aniket-engg 4 years ago committed by joseph izang
parent deb586ef80
commit 44de0d8819
  1. 4
      libs/remixd/src/bin/remixd.ts

@ -58,9 +58,9 @@ function errorHandler (error: any, service: string) {
program program
.usage('-s <shared folder>') .usage('-s <shared folder>')
.description('Provide a two-way connection between the local computer and Remix IDE') .description('Provide a two-way connection between the local computer and Remix IDE')
.option('--remix-ide <url>', 'URL of remix instance allowed to connect to this web sockect connection') .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') .option('-s, --shared-folder <path>', 'Folder to share with Remix IDE')
.option('--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 ./ --remix-ide http://localhost:8080') console.log('\nExample:\n\n remixd -s ./ --remix-ide http://localhost:8080')
}).parse(process.argv) }).parse(process.argv)

Loading…
Cancel
Save