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.
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.