]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/opt-help.c
Opt: Documented opt and its interaction with conf
[libucw.git] / ucw / opt-help.c
index c69c22d360e6f55b498acf0f396360ad01fd36c2..4166cc5f717e627e41e993b0a7e7d53dd83f5885 100644 (file)
@@ -160,6 +160,7 @@ void opt_help(const struct opt_section * sec) {
 
 void opt_handle_help(struct opt_item * opt UNUSED, const char * value UNUSED, void * data)
 {
-  opt_help(data);
+  struct opt_context *oc = data;
+  opt_help(oc->options);
   exit(0);
 }