Add param for Dry run to use a DB file instead of memory (#182)

This commit is contained in:
Gérald LONLAS
2017-12-14 06:10:11 -08:00
committed by Michael Egger
parent 4b38100ae2
commit 2ac8b685d6
4 changed files with 40 additions and 15 deletions

View File

@@ -119,6 +119,13 @@ def parse_args(args: List[str]):
metavar='INT',
nargs='?',
)
parser.add_argument(
'--dry-run-db',
help='Force dry run to use a local DB "tradesv3.dry_run.sqlite" instead of memory DB. Work only if dry_run is \
enabled.',
action='store_true',
dest='dry_run_db',
)
build_subcommands(parser)
parsed_args = parser.parse_args(args)