gchar *opt_samples = NULL;
gchar *opt_frames = NULL;
gchar *opt_continuous = NULL;
+gchar *opt_get = NULL;
gchar *opt_set = NULL;
/* defines a callback function that generates
CHECK_ONCE(opt_time)
CHECK_ONCE(opt_samples)
CHECK_ONCE(opt_frames)
+CHECK_ONCE(opt_get)
#undef CHECK_STR_ONCE
"Number of frames to acquire", NULL},
{"continuous", 0, 0, G_OPTION_ARG_NONE, &opt_continuous,
"Sample continuously", NULL},
+ {"get", 0, 0, G_OPTION_ARG_CALLBACK, &check_opt_get, "Get device option only", NULL},
{"set", 0, 0, G_OPTION_ARG_NONE, &opt_set, "Set device options only", NULL},
{NULL, 0, 0, 0, NULL, NULL, NULL}
};
opt_output_file = g_strdup(output_file_array[0]);
}
+ if (1 != argc) {
+ g_critical("superfluous command line argument \"%s\"", argv[1]);
+ goto done;
+ }
+
ret = 0;
done: