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

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