criu/lib/py
Adrian Reber 681c05392d crit: display help message when using python3
Running crit with python2 gives following minimal help message:

 $ crit/crit
 usage: crit [-h] {decode,encode,info,x,show} ...
 crit: error: too few arguments

Using a python3 only system crit shows the following error:

 $ crit/crit
 Traceback (most recent call last):
   File "crit/crit", line 6, in <module>
     cli.main()
   File "/home/criu/crit/pycriu/cli.py", line 334, in main
     opts["func"](opts)
 KeyError: 'func'

Using this patch the python3 output changes to:

 $ crit/crit
 usage: crit [-h] {decode,encode,info,x,show} ...
 crit: error: too few arguments

Suggested-by: Andrei Vagin <avagin@gmail.com>
Signed-off-by: Adrian Reber <areber@redhat.com>
2019-04-20 20:25:26 -07:00
..
images crit-images: Fix reference to ipc_msg() 2018-10-30 19:28:19 +03:00
.gitignore python lib: rename rpc.py to rpc_pb2.py 2016-10-10 12:49:28 +03:00
__init__.py crit: make crit python2/python3 compatible 2018-07-09 18:25:16 +03:00
cli.py crit: display help message when using python3 2019-04-20 20:25:26 -07:00
criu.py python: Remove unused imports 2018-10-30 19:28:01 +03:00
Makefile build: Reused .FORCE from nmk 2017-11-23 20:23:14 +03:00