Skip to content

Commit ae58e8d

Browse files
HavenDVclaude
andcommitted
fix: use correct System.CommandLine v2.0.5 API for CLI invocation
CommandLineConfiguration doesn't exist in System.CommandLine 2.0.5. Use rootCommand.Parse(args).InvokeAsync() instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d545187 commit ae58e8d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/cli/Tiktoken.Cli/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,7 @@ await Console.Error.WriteLineAsync(
387387
return 0;
388388
});
389389

390-
var config = new CommandLineConfiguration(rootCommand);
391-
return await config.InvokeAsync(args).ConfigureAwait(false);
390+
return await rootCommand.Parse(args).InvokeAsync().ConfigureAwait(false);
392391

393392
static void HandleStdinMode(
394393
string input,

0 commit comments

Comments
 (0)