From b49feed2f88c0a6ae9cc2ca4b2982096f18a2112 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Mon, 6 May 2019 17:07:24 +0200 Subject: Expand the responsefiles earlier * Move the expansion of response files to module Commandline, during the initialization of `Commandline.argv`. This way we're sure it's done exactly once. * Make `Commandline.argv` a `string array` instead of a `string array ref`. We no longer need to update it after initialization! * Improve reporting of errors during expansion of response files. --- driver/Commandline.mli | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'driver/Commandline.mli') diff --git a/driver/Commandline.mli b/driver/Commandline.mli index e1b917f2..0f903af4 100644 --- a/driver/Commandline.mli +++ b/driver/Commandline.mli @@ -42,8 +42,8 @@ exception CmdError of string (** Raise by [parse_cmdline] when an error occured *) val parse_cmdline: (pattern * action) list -> unit -(** [parse_cmdline actions] parses the commandline and performs all [actions]. - Raises [CmdError] if an error occurred. +(** [parse_cmdline actions] parses the command line (after @-file expansion) + and performs all [actions]. Raises [CmdError] if an error occurred. *) val longopt_int: string -> (int -> unit) -> pattern * action @@ -51,5 +51,5 @@ val longopt_int: string -> (int -> unit) -> pattern * action options of the form [key=] and calls [fn] with the integer argument *) -val argv: string array ref +val argv: string array (** [argv] contains the complete command line after @-file expandsion *) -- cgit