From 9f3dd6e18fdda66c692d9a83e0102216f89e23c4 Mon Sep 17 00:00:00 2001 From: Alicia Woitte Date: Thu, 31 Dec 2020 03:16:05 -0500 Subject: [PATCH] cli: fix unused callback in test_if_subcommands_parse_args (#7731) --- vlib/cli/command_test.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/cli/command_test.v b/vlib/cli/command_test.v index a9f4e28cac..341ef22e38 100644 --- a/vlib/cli/command_test.v +++ b/vlib/cli/command_test.v @@ -24,13 +24,13 @@ fn test_if_subcommands_parse_args() { } subcmd := cli.Command{ name: 'subcommand' - execute: empty_func + execute: if_subcommands_parse_args_func } cmd.add_command(subcmd) cmd.parse(['command', 'subcommand', 'arg0', 'arg1']) } -fn if_subcommands_parse_args_func(cmd cli.Command) { +fn if_subcommands_parse_args_func(cmd cli.Command) ? { assert cmd.name == 'subcommand' && compare_arrays(cmd.args, ['arg0', 'arg1']) }