Hacker News new | past | comments | ask | show | jobs | submit login

If the tool's main purpose is generating some specific file, then -o/--output should name that file or directory.

If the tool generates some table-like output, then -o/--output usually allows changing what exactly is output. E.g. lsblk -o +model.

For different output formats I've seen -f/--format {text,json,xml}, might be a bit verbose. --json is probably fine. Short version needed? Probably not.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: