using System.CommandLine; namespace Jtr.Tools.CLI; public static class SharedCommandOptions { public static readonly Option InputOption = new(aliases: ["--input", "-i"], getDefaultValue: () => InputSource.stdin) { IsRequired = false }; public static readonly Argument InputArgument = new(name: "input", description: "The input argument.", getDefaultValue: () => default); public static readonly Option InputFileOption = new( aliases: ["--input-file", "--if"], description: "Read the input from a file. This option is required when using an input of type file." ); public static readonly Option OutputFileOption = new( aliases: ["--output-file", "--of"], description: "Write the output to a file. This option is required when using an output of type file." ); public static readonly Option OutputOption = new(aliases: ["--output", "-o"], getDefaultValue: () => OutputOptions.stdout) { IsRequired = false }; }