public static Command ConvertCommand() => new Command( name: "convert", description: "Converts traces to alternate formats for use with alternate trace analysis tools. Can only convert from the nettrace format") { // Handler System.CommandLine.Invocation.CommandHandler.Create <IConsole, FileInfo, TraceFileFormat, FileInfo>(ConvertFile), // Arguments and Options InputFileArgument(), CommonOptions.ConvertFormatOption(), OutputOption(), };
public static Command ConvertCommand() => new Command( name: "convert", description: "Converts traces to alternate formats for use with alternate trace analysis tools. Can only convert from the nettrace format.", argument: (new Argument <FileInfo>(defaultValue: new FileInfo(CollectCommandHandler.DefaultTraceName)) { Name = "input-filename", Description = $"Input trace file to be converted. Defaults to '{CollectCommandHandler.DefaultTraceName}'." }).ExistingOnly(), symbols: new Option[] { CommonOptions.ConvertFormatOption(), OutputOption() }, handler: System.CommandLine.Invocation.CommandHandler.Create <IConsole, FileInfo, TraceFileFormat, FileInfo>(ConvertFile), isHidden: false );