mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-21 00:19:42 +02:00
enhance slurp error message
This commit is contained in:
@ -709,7 +709,8 @@ class JcCli():
|
|||||||
"""Slurp output into an array. Only works for single-line strings."""
|
"""Slurp output into an array. Only works for single-line strings."""
|
||||||
if self.parser_module and not _parser_is_slurpable(self.parser_module):
|
if self.parser_module and not _parser_is_slurpable(self.parser_module):
|
||||||
utils.error_message([
|
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()
|
self.exit_error()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user