Esempio n. 1
0
 /// <summary>
 ///     The main entry point for the application.
 /// </summary>
 private static void Main(string[] args)
 {
     Parser.Default.ParseArguments <CompressOptions, DecompressOptions>(args)
     .MapResult((CompressOptions o) => CompressOptions.Run(o),
                (DecompressOptions o) => DecompressOptions.Run(o),
                err => 1);
 }
 public static int Run(DecompressOptions options)
 {
     options.DecompressInputFiles.ForEach(f => DecompressToDirectory(f, options.DecompressOutputDirectory));
     return(0);
 }