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