Skip to content

Commit

Permalink
Allow case-insensitive parsing of tool names
Browse files Browse the repository at this point in the history
  • Loading branch information
kosyloa committed Nov 7, 2023
1 parent 61d0385 commit 4d18b81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "Dump tapeK2.tape[speed=max] -t ios_tapeK2.tape -q"
argument = "DuMp tapeK2.tape[speed=max] -t ios_tapeK2.tape -q"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
Expand Down
3 changes: 2 additions & 1 deletion Samples/Tools/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ let commands: [ToolsCommand] = [PerfTestTool(),
HelpTool()]

func getCommand(_ cmd: String) -> ToolsCommand? {
var cmd = cmd.lowercased()
return commands.first { command in
command.cmd == cmd
command.cmd.lowercased() == cmd
}
}

Expand Down

0 comments on commit 4d18b81

Please sign in to comment.