aboutsummaryrefslogtreecommitdiff
path: root/hardinfo/util.c
diff options
context:
space:
mode:
authorSimon Quigley <tsimonq2@ubuntu.com>2018-02-27 22:34:49 -0600
committerSimon Quigley <tsimonq2@ubuntu.com>2018-02-27 22:34:49 -0600
commit00831e690c4581ee8f0f92902ebdb75304bde817 (patch)
tree55a37b9cc5d60ad047631ffb39d2f822a22d6d39 /hardinfo/util.c
parentd95f107ef2b9e82c341060be0def97d7bfa430b9 (diff)
parent09fcc751ef158898c315ebc9299a0fa3a722d914 (diff)
Update upstream source from tag 'upstream/0.5.1+git20180227'
Update to upstream version '0.5.1+git20180227' with Debian dir 7ca675e2ccb4367b7cc5b255a36b5173afaf9d2c
Diffstat (limited to 'hardinfo/util.c')
-rw-r--r--hardinfo/util.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hardinfo/util.c b/hardinfo/util.c
index efa19b9c..7bcc5dd5 100644
--- a/hardinfo/util.c
+++ b/hardinfo/util.c
@@ -390,6 +390,7 @@ void parameters_init(int *argc, char ***argv, ProgramParameters * param)
static gboolean run_xmlrpc_server = FALSE;
static gchar *report_format = NULL;
static gchar *run_benchmark = NULL;
+ static gchar *result_format = NULL;
static gchar **use_modules = NULL;
static GOptionEntry options[] = {
@@ -412,6 +413,12 @@ void parameters_init(int *argc, char ***argv, ProgramParameters * param)
.arg_data = &run_benchmark,
.description = N_("run benchmark; requires benchmark.so to be loaded")},
{
+ .long_name = "result-format",
+ .short_name = 'g',
+ .arg = G_OPTION_ARG_STRING,
+ .arg_data = &result_format,
+ .description = N_("benchmark result format ([short], conf, shell)")},
+ {
.long_name = "list-modules",
.short_name = 'l',
.arg = G_OPTION_ARG_NONE,
@@ -468,6 +475,7 @@ void parameters_init(int *argc, char ***argv, ProgramParameters * param)
param->list_modules = list_modules;
param->use_modules = use_modules;
param->run_benchmark = run_benchmark;
+ param->result_format = result_format;
param->autoload_deps = autoload_deps;
param->run_xmlrpc_server = run_xmlrpc_server;
param->argv0 = *(argv)[0];