diff --git a/docs/utils.md b/docs/utils.md index 12597220a..7ed31376f 100644 --- a/docs/utils.md +++ b/docs/utils.md @@ -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 ``` diff --git a/freqtrade/commands/cli_options.py b/freqtrade/commands/cli_options.py index 4c51802f0..a8f2ffdba 100644 --- a/freqtrade/commands/cli_options.py +++ b/freqtrade/commands/cli_options.py @@ -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 diff --git a/tests/commands/test_commands.py b/tests/commands/test_commands.py index 0465858c0..2796a8b45 100644 --- a/tests/commands/test_commands.py +++ b/tests/commands/test_commands.py @@ -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