From df41668a865508211f82da09a2654536eb892540 Mon Sep 17 00:00:00 2001 From: Rodrigo Morales Date: Sat, 10 Aug 2024 00:31:25 -0500 Subject: [PATCH] add option --log-cli-level in python-pytest-dispatch --- python-pytest.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/python-pytest.el b/python-pytest.el index 3e3a0c8..11b11a9 100644 --- a/python-pytest.el +++ b/python-pytest.el @@ -146,7 +146,8 @@ When non-nil only ‘test_foo()’ will match, and nothing else." [("-c" "color" "--color") ("-q" "quiet" "--quiet") ("-s" "no output capture" "--capture=no") - (python-pytest:-v)]] + (python-pytest:-v) + (python-pytest:--l)]] ["Selection, filtering, ordering" [(python-pytest:-k) (python-pytest:-m) @@ -484,6 +485,13 @@ When present ON-REPLACEMENT is substituted, else OFF-REPLACEMENT is appended." (formatted-input (format " %s" quoted-input))) formatted-input)) +(transient-define-argument python-pytest:--l () + :description "set log cli level" + :class 'transient-option + :key "--l" + :argument "--log-cli-level=" + :choices '("debug" "info" "warning" "error" "critical")) + (transient-define-argument python-pytest:-k () :description "only names matching expression" :class 'transient-option