Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CMCDragonkai/a2915c6dd373db0a331901dae6b54117 to your computer and use it in GitHub Desktop.
Save CMCDragonkai/a2915c6dd373db0a331901dae6b54117 to your computer and use it in GitHub Desktop.
Multi-input and Multi-output Unix Processes #cli

Multi-input and Multi-output Unix Processes

When writing a multi-input and/or multi-output process. Use this style:

process --foo=foo --bar=bar --output-foo=output_foo --output-bar=output_bar

To represent STDIN or STDOUT you can optionally use -.

Named parameters are always better than position parameters for multi-input and/or multi-output because the interaction between processes exist at the process boundary. Which means you don't get the benefit of type checkers or single programming language. The interface is more flexible when using named parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment