Blame SOURCES/0031-Adding-json-option-in-help-output.patch

99c779
From 503c76a35a9e97a098af7c1ac793a7e13c07ce70 Mon Sep 17 00:00:00 2001
99c779
From: Chandni Verma <chandni@linux.vnet.ibm.com>
99c779
Date: Thu, 8 Sep 2016 14:29:08 +0530
99c779
Subject: [PATCH 31/43] Adding -json option in -help output
99c779
99c779
-json works perfectly and is a recognized lshw option already.
99c779
It was only missed in printing. Nothing more needs to be done.
99c779
99c779
Signed-off-by: Chandni Verma <chandni@linux.vnet.ibm.com>
99c779
---
99c779
 src/lshw.cc | 1 +
99c779
 1 file changed, 1 insertion(+)
99c779
99c779
diff --git a/src/lshw.cc b/src/lshw.cc
99c779
index 77a5932..5fc8ade 100644
99c779
--- a/src/lshw.cc
99c779
+++ b/src/lshw.cc
99c779
@@ -28,6 +28,7 @@ void usage(const char *progname)
99c779
   fprintf(stderr, _("\nformat can be\n"));
99c779
   fprintf(stderr, _("\t-html           output hardware tree as HTML\n"));
99c779
   fprintf(stderr, _("\t-xml            output hardware tree as XML\n"));
99c779
+  fprintf(stderr, _("\t-json           output hardware tree as a JSON object\n"));
99c779
   fprintf(stderr, _("\t-short          output hardware paths\n"));
99c779
   fprintf(stderr, _("\t-businfo        output bus information\n"));
99c779
   if(getenv("DISPLAY") && exists(SBINDIR"/gtk-lshw"))
99c779
-- 
99c779
2.10.2
99c779