Skip to content

Commit

Permalink
options: fix setting network-specific options from command-line
Browse files Browse the repository at this point in the history
fix #34
  • Loading branch information
ygrek committed Jul 30, 2024
1 parent d201d57 commit 911fa54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/utils/lib/options.ml4
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,12 @@ let simple_args prefix opfile =
Arg.String
(fun s ->
lprintf_nl "Setting option %s" oi.M.option_name;
set_simple_option opfile oi.M.option_name s),
let name =
match String2.split oi.M.option_name '-' with
| [ _ (* ^ "-" = prefix *); name ] -> name (* opfile is corresponding to prefix *)
| _ -> oi.M.option_name
in
set_simple_option opfile name s),
Printf.sprintf "<string> : \t%s (current: %s)"
oi.M.option_help oi.M.option_value)
(simple_options prefix opfile true)
Expand Down

0 comments on commit 911fa54

Please sign in to comment.