static CommandLineBuilder BuildCommandLine(GraphClient client, IEnumerable <Command> commands) { var rootCommand = client.BuildRootCommand(); rootCommand.Description = "Microsoft Graph CLI"; foreach (var command in commands) { rootCommand.AddCommand(command); } return(new CommandLineBuilder(rootCommand)); }