Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
anki-code authored Apr 3, 2024
1 parent 7d19eef commit 6393338
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xontrib/pipeliner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ def _pl(args, stdin, stdout):

presets = {**_default_presets, **__xonsh__.env.get('XONTRIB_PIPELINER_PRESETS', {})}
if err:
print('Usage: <command> | <command> | ... | pl "<Python code>"\n'
print('Usage: <command> | <command> | ... | pl "<Python code or preset name>"\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
Expand Down

0 comments on commit 6393338

Please sign in to comment.