From 73ae1396b94cc4122d968d4368a2f4e7bd0ef32b Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 5 Jan 2024 16:58:15 -0800 Subject: [PATCH] enhance slurp error message --- jc/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jc/cli.py b/jc/cli.py index 24f533f1..d062d4e1 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -709,7 +709,8 @@ class JcCli(): """Slurp output into an array. Only works for single-line strings.""" if self.parser_module and not _parser_is_slurpable(self.parser_module): utils.error_message([ - f'Slurp option not available with the {self.parser_name} parser.' + f'Slurp option not available with the {self.parser_name} parser.', + 'Use `jc -hhh` to find compatible parsers.' ]) self.exit_error()