@shintuku from a Unix perspective, this isn't a weird thing to do. I once made a complicated argparse setup:
github.com/secemp9/openai-tools/blob/main/… but I forgot to document it, so I don't recall exactly what each lines does (I could remember if I use print statement). Anyway, this work in emulating Linux-like workflow, using pipe, etc. If you use argparse, you might be able to do it, but you need to test things and play around to find something that work