コード例 #1
0
 public static void VersionOptionFromAssemblyAttributes(this CommandLineApplication app, Assembly assembly)
 => app.VersionOption("--version", GetInformationalVersion(assembly));
コード例 #2
0
 public static CommandOption VersionOption(
     this CommandLineApplication command,
     Func <string> shortFormVersionGetter)
 => command.VersionOption("--version", shortFormVersionGetter);