Skip to content

Commit f88eefa

Browse files
authored
cli fixes (#13)
1 parent ef5a244 commit f88eefa

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

.docs/cli-examples-es.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ xcm-sdk limitedTeleportAssets \
4242
--mnemonic //Alice \
4343
--destP 1 \
4444
--ben AccountId32 \
45-
--benV <relay chain account> \
45+
--benV '<relay chain account>' \
4646
--assetP 1 \
4747
--a 1000000000000
4848
```
@@ -56,7 +56,7 @@ xcm-sdk limitedReserveTransferAssets \
5656
--destV 2000 \
5757
--destP 1 \
5858
--ben AccountId32 \
59-
--benV <trappist account> \
59+
--benV '<trappist account>' \
6060
--assetId 1 \
6161
--a 1000000000000
6262
```

.docs/cli-examples.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ xcm-sdk limitedTeleportAssets \
4242
--mnemonic //Alice \
4343
--destP 1 \
4444
--ben AccountId32 \
45-
--benV <relay chain account> \
45+
--benV '<relay chain account>' \
4646
--assetP 1 \
4747
--a 1000000000000
4848
```
@@ -56,7 +56,7 @@ xcm-sdk limitedReserveTransferAssets \
5656
--destV 2000 \
5757
--destP 1 \
5858
--ben AccountId32 \
59-
--benV <trappist account> \
59+
--benV '<trappist account>' \
6060
--assetId 1 \
6161
--a 1000000000000
6262
```

package-lock.json

+7-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"@types/mocha": "^10.0.1",
6565
"@types/node": "^18.14.0",
6666
"@types/sinon": "^10.0.13",
67+
"@types/yargs": "^17.0.22",
6768
"@typescript-eslint/eslint-plugin": "^5.52.0",
6869
"@typescript-eslint/parser": "^5.52.0",
6970
"chai": "^4.3.7",
@@ -87,7 +88,6 @@
8788
"@polkadot/util-crypto": "^10.2.6"
8889
},
8990
"dependencies": {
90-
"@types/yargs": "^17.0.22",
9191
"yargs": "^17.7.0"
9292
}
9393
}

src/bin/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { commonArgsOptions, executeCommand, SUPPORTED_METHODS } from '../command
55
usage('$0 <command> [args]')
66
.strict()
77
.command(
8-
'limitedReserveTransferAssets --args',
8+
'limitedReserveTransferAssets [--args]',
99
'',
1010
function (yargs) {
1111
return yargs.options(commonArgsOptions as any)
@@ -15,7 +15,7 @@ usage('$0 <command> [args]')
1515
},
1616
)
1717
.command(
18-
'reserveTransferAssets --args',
18+
'reserveTransferAssets [--args]',
1919
'',
2020
function (yargs) {
2121
return yargs.options(commonArgsOptions as any)
@@ -25,7 +25,7 @@ usage('$0 <command> [args]')
2525
},
2626
)
2727
.command(
28-
'teleportAssets --args',
28+
'teleportAssets [--args]',
2929
'',
3030
function (yargs) {
3131
return yargs.options(commonArgsOptions as any)
@@ -35,7 +35,7 @@ usage('$0 <command> [args]')
3535
},
3636
)
3737
.command(
38-
'limitedTeleportAssets --args',
38+
'limitedTeleportAssets [--args]',
3939
'',
4040
function (yargs) {
4141
return yargs.options(commonArgsOptions as any)

0 commit comments

Comments
 (0)