Skip to content

Commit

Permalink
New Option htmlfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mjungnickel18 committed May 1, 2019
1 parent f3116df commit b62db0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PapyrusCs/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public class Options
[Option('o', "output", Required = false, HelpText = "Sets the output path for the generated map tiles", Default = ".")]
public string OutputPath { get; set; }

[Option("htmlfile", Required = false, HelpText = "Sets name of html map file", Default = "map.html")]
public string MapHtml { get; set; }

[Option('s', "strategy", Required = false, HelpText = "Sets the render strategy. Valid are SingleFor and ParallelFor (Multithreaded)", Default = Strategy.ParallelFor)]
public Strategy Strategy { get; set; }

Expand Down Expand Up @@ -171,7 +174,7 @@ static int Main(string[] args)
mapHtml = mapHtml.Replace("%maxzoom%", (zoom + 1).ToString());
mapHtml = mapHtml.Replace("%tilesize%", (tileSize).ToString());

File.WriteAllText(Path.Combine(options.OutputPath, "map.html"), mapHtml);
File.WriteAllText(Path.Combine(options.OutputPath, options.MapHtml), mapHtml);
}
catch (Exception ex)
{
Expand Down

0 comments on commit b62db0a

Please sign in to comment.