From 63933380a2d99052cf39812db86f3ed74bbf618d Mon Sep 17 00:00:00 2001 From: Andy Kipp Date: Wed, 3 Apr 2024 13:27:28 +0200 Subject: [PATCH] Update __init__.py --- xontrib/pipeliner/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xontrib/pipeliner/__init__.py b/xontrib/pipeliner/__init__.py index ad3ba91..a0f7e4d 100644 --- a/xontrib/pipeliner/__init__.py +++ b/xontrib/pipeliner/__init__.py @@ -30,8 +30,9 @@ def _pl(args, stdin, stdout): presets = {**_default_presets, **__xonsh__.env.get('XONTRIB_PIPELINER_PRESETS', {})} if err: - print('Usage: | | ... | pl ""\n' + print('Usage: | | ... | pl ""\n' + 'Example: echo "123" | pl "line[::-1]"\n' + + 'Example: echo " 123 " | pl strip\n' + 'Presets:\n' + '\n'.join(f" {p}: {repr(v) if type(v) is str else 'func'}" for p,v in presets.items()) , file=sys.stderr) return