pstree: support more process information via --format
could pstree have an option to include state & cpu time ?
maybe instead of adding more command line flags, add a single -F/--format option ? then define a "simple" % syntax to let people control things how they want ?
so the default pstree would be equiv to: pstree --format '%(basename)'
the -p option would be: pstree --format '%(basename),(%(pid))'
then it would be easy to include state, cputime, pgid, session id, etc... and leave it to the user to construct the format they want