Interface

There are only five flags

command line showing getargv's flags: v0sh?

Do One Thing

In the spirit of UNIX, getargv does exactly one thing. It prints a PID's arguments. Therefore there isn't any need for a complex interface with many options. Anything that getargv doesn't do can be better achieved by piping its output into another tool.

The one allowance for surfeit is the redundant -? flag, which exists purely as aesthetic indulgence.

The options

-v
Print getargv's version number
-0
Print arguments separated (machine readable), default is space separated (human readable)
-s #
Strip # of leading arguments
-h
Print help
-?
Print help
homepage link