From 5e683d03fea143c5000a9e4fd1e8f30919ec9bfc Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sat, 11 Jul 2020 19:17:59 +0200 Subject: [PATCH] Allow extra args on pretrain and debug_data --- spacy/cli/debug_data.py | 5 ++++- spacy/cli/pretrain.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/spacy/cli/debug_data.py b/spacy/cli/debug_data.py index 84ee8a757..4563f96f0 100644 --- a/spacy/cli/debug_data.py +++ b/spacy/cli/debug_data.py @@ -24,7 +24,10 @@ BLANK_MODEL_MIN_THRESHOLD = 100 BLANK_MODEL_THRESHOLD = 2000 -@app.command("debug-data") +@app.command( + "debug-data", + context_settings={"allow_extra_args": True, "ignore_unknown_options": True}, +) def debug_data_cli( # fmt: off ctx: typer.Context, # This is only used to read additional arguments diff --git a/spacy/cli/pretrain.py b/spacy/cli/pretrain.py index c509bb945..d4e103092 100644 --- a/spacy/cli/pretrain.py +++ b/spacy/cli/pretrain.py @@ -24,7 +24,10 @@ from ..attrs import ID, HEAD from .. import util -@app.command("pretrain") +@app.command( + "pretrain", + context_settings={"allow_extra_args": True, "ignore_unknown_options": True}, +) def pretrain_cli( # fmt: off ctx: typer.Context, # This is only used to read additional arguments