diff --git a/src/lix/cli/Cli.hx b/src/lix/cli/Cli.hx index 2aa5d3a..953c7cc 100755 --- a/src/lix/cli/Cli.hx +++ b/src/lix/cli/Cli.hx @@ -83,7 +83,7 @@ class Cli { } ), new Command('install haxe', '|', 'install specified haxe version', null),//this is never matched and is here purely for usage display - new Command('use', 'haxe |', 'use specified haxe version', function (args) return switch args { + new Command('use', 'haxe |', 'use specified haxe version', function (args) return switch args { case ['haxe', version]: hx.resolveInstalled(version).next(hx.switchTo); default: new Error('invalid arguments'); }),