Adjust trade-ids param

This commit is contained in:
Matthias 2020-05-03 15:32:09 +02:00
parent 7dcef58f15
commit 1c9c72937e
3 changed files with 7 additions and 7 deletions

View File

@ -529,7 +529,7 @@ Print selected (or all) trades from database to screen.
```
usage: freqtrade show-trades [-h] [-v] [--logfile FILE] [-V] [-c PATH]
[-d PATH] [--userdir PATH] [--db-url PATH]
[--tradeids TRADE_IDS [TRADE_IDS ...]]
[--trade-ids TRADE_IDS [TRADE_IDS ...]]
[--print-json]
optional arguments:
@ -538,8 +538,8 @@ optional arguments:
deployments (default: `sqlite:///tradesv3.sqlite` for
Live Run mode, `sqlite:///tradesv3.dryrun.sqlite` for
Dry Run).
--tradeids TRADE_IDS [TRADE_IDS ...]
Specify Trade ids to trade
--trade-ids TRADE_IDS [TRADE_IDS ...]
Specify the list of trade ids.
--print-json Print output in JSON format.
Common arguments:
@ -564,5 +564,5 @@ Common arguments:
Print trades with id 2 and 3 as json
``` bash
freqtrade show-trades --db-url sqlite:///tradesv3.sqlite --tradeids 2 3 --print-json
freqtrade show-trades --db-url sqlite:///tradesv3.sqlite --trade-ids 2 3 --print-json
```

View File

@ -426,8 +426,8 @@ AVAILABLE_CLI_OPTIONS = {
default="file",
),
"trade_ids": Arg(
'--tradeids',
help='Specify Trade ids to trade',
'--trade-ids',
help='Specify the list of trade ids.',
nargs='+',
),
# hyperopt-list, hyperopt-show

View File

@ -1066,7 +1066,7 @@ def test_show_trades(mocker, fee, capsys, caplog):
"--db-url",
"sqlite:///",
"--print-json",
"--tradeids", "1", "2"
"--trade-ids", "1", "2"
]
pargs = get_args(args)
pargs['config'] = None