python-linux-procfs: pflags: Use argparse to create a help option

The purpose of this change was to create a -h, or --help option.
The following changes were made.

1. pflags is now python3 only, since it uses argparse.
2. The handling of pids or process names is improved, instead of a
command separated list (without spaces), the more standard unix way of
space separated command line arguements are used.

This is explained in the help

./pflags -h
usage: pflags [-h] [pid [pid ...]]

Print process flags

positional arguments:
  pid         a list of pids or names

optional arguments:
  -h, --help  show this help message and exit

Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Jiri Kastner <jkastner@redhat.com>
1 file changed
tree: bbb5f4658baaa02a593e0137f3c27d65654613d8
  1. COPYING
  2. MANIFEST
  3. Makefile
  4. bitmasklist_test.py
  5. pflags
  6. procfs/
  7. rpm/
  8. setup.py