From 1de38f344df719e41c24f1cef631eccc0cf95a03 Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Thu, 23 Jul 2015 02:51:00 +0300 Subject: [PATCH] crit: add a `show` option for human consumption This saves some keystrokes and is equivalent to decode --pretty. Signed-off-by: Tycho Andersen Signed-off-by: Pavel Emelyanov --- crit | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crit b/crit index 350362c36..ba586fab8 100755 --- a/crit +++ b/crit @@ -73,6 +73,12 @@ def main(): help = 'where to put criu image in binary format (stdout by default)') encode_parser.set_defaults(func=encode) + # Show + show_parser = subparsers.add_parser('show', + help = "convert criu image from binary to human-readable json") + show_parser.add_argument("in") + show_parser.set_defaults(func=decode, pretty=True, out=None) + opts = vars(parser.parse_args()) opts["func"](opts)