diff --git a/.docs/cli-examples-es.md b/.docs/cli-examples-es.md index b5b0ddd..a3bcc71 100644 --- a/.docs/cli-examples-es.md +++ b/.docs/cli-examples-es.md @@ -42,7 +42,7 @@ xcm-sdk limitedTeleportAssets \ --mnemonic //Alice \ --destP 1 \ --ben AccountId32 \ ---benV \ +--benV '' \ --assetP 1 \ --a 1000000000000 ``` @@ -56,7 +56,7 @@ xcm-sdk limitedReserveTransferAssets \ --destV 2000 \ --destP 1 \ --ben AccountId32 \ ---benV \ +--benV '' \ --assetId 1 \ --a 1000000000000 ``` diff --git a/.docs/cli-examples.md b/.docs/cli-examples.md index 9f2cbf4..73c65d5 100644 --- a/.docs/cli-examples.md +++ b/.docs/cli-examples.md @@ -42,7 +42,7 @@ xcm-sdk limitedTeleportAssets \ --mnemonic //Alice \ --destP 1 \ --ben AccountId32 \ ---benV \ +--benV '' \ --assetP 1 \ --a 1000000000000 ``` @@ -56,7 +56,7 @@ xcm-sdk limitedReserveTransferAssets \ --destV 2000 \ --destP 1 \ --ben AccountId32 \ ---benV \ +--benV '' \ --assetId 1 \ --a 1000000000000 ``` diff --git a/package-lock.json b/package-lock.json index 01a5e16..a3c21cb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,6 @@ "version": "0.1.0-rc.1", "license": "MIT", "dependencies": { - "@types/yargs": "^17.0.22", "yargs": "^17.7.0" }, "bin": { @@ -27,6 +26,7 @@ "@types/mocha": "^10.0.1", "@types/node": "^18.14.0", "@types/sinon": "^10.0.13", + "@types/yargs": "^17.0.22", "@typescript-eslint/eslint-plugin": "^5.52.0", "@typescript-eslint/parser": "^5.52.0", "chai": "^4.3.7", @@ -1463,6 +1463,7 @@ "version": "17.0.22", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.22.tgz", "integrity": "sha512-pet5WJ9U8yPVRhkwuEIp5ktAeAqRZOq4UdAyWLWzxbtpyXnzbtLdKiXAjJzi/KLmPGS9wk86lUFWZFN6sISo4g==", + "dev": true, "dependencies": { "@types/yargs-parser": "*" } @@ -1470,7 +1471,8 @@ "node_modules/@types/yargs-parser": { "version": "21.0.0", "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==" + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", + "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "5.52.0", @@ -7947,6 +7949,7 @@ "version": "17.0.22", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.22.tgz", "integrity": "sha512-pet5WJ9U8yPVRhkwuEIp5ktAeAqRZOq4UdAyWLWzxbtpyXnzbtLdKiXAjJzi/KLmPGS9wk86lUFWZFN6sISo4g==", + "dev": true, "requires": { "@types/yargs-parser": "*" } @@ -7954,7 +7957,8 @@ "@types/yargs-parser": { "version": "21.0.0", "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==" + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", + "dev": true }, "@typescript-eslint/eslint-plugin": { "version": "5.52.0", diff --git a/package.json b/package.json index d4013fc..188034c 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "@types/mocha": "^10.0.1", "@types/node": "^18.14.0", "@types/sinon": "^10.0.13", + "@types/yargs": "^17.0.22", "@typescript-eslint/eslint-plugin": "^5.52.0", "@typescript-eslint/parser": "^5.52.0", "chai": "^4.3.7", @@ -87,7 +88,6 @@ "@polkadot/util-crypto": "^10.2.6" }, "dependencies": { - "@types/yargs": "^17.0.22", "yargs": "^17.7.0" } } diff --git a/src/bin/index.ts b/src/bin/index.ts index 109a0d4..72a3a46 100755 --- a/src/bin/index.ts +++ b/src/bin/index.ts @@ -5,7 +5,7 @@ import { commonArgsOptions, executeCommand, SUPPORTED_METHODS } from '../command usage('$0 [args]') .strict() .command( - 'limitedReserveTransferAssets --args', + 'limitedReserveTransferAssets [--args]', '', function (yargs) { return yargs.options(commonArgsOptions as any) @@ -15,7 +15,7 @@ usage('$0 [args]') }, ) .command( - 'reserveTransferAssets --args', + 'reserveTransferAssets [--args]', '', function (yargs) { return yargs.options(commonArgsOptions as any) @@ -25,7 +25,7 @@ usage('$0 [args]') }, ) .command( - 'teleportAssets --args', + 'teleportAssets [--args]', '', function (yargs) { return yargs.options(commonArgsOptions as any) @@ -35,7 +35,7 @@ usage('$0 [args]') }, ) .command( - 'limitedTeleportAssets --args', + 'limitedTeleportAssets [--args]', '', function (yargs) { return yargs.options(commonArgsOptions as any)