diff --git a/vlib/v/pref/pref.v b/vlib/v/pref/pref.v index cd162f9432..7cfb68fd89 100644 --- a/vlib/v/pref/pref.v +++ b/vlib/v/pref/pref.v @@ -225,7 +225,7 @@ pub fn parse_args(args []string) (&Preferences, string) { res.build_options << arg } '-prof', '-profile' { - res.profile_file = cmdline.option(current_args, '-profile', '-') + res.profile_file = cmdline.option(current_args, arg, '-') res.is_prof = true res.build_options << '$arg $res.profile_file' i++