Bilal ARIKAN 9039c40873
Change command line --launch-browser=false to --headless (#2033)
* Changed command-line --launch-browser false to --headless

* Apply suggestions from code review

---------

Co-authored-by: Jeremy Pritts <49847914+ds5678@users.noreply.github.com>
2025-12-02 16:06:21 -08:00

30 lines
1.1 KiB
C#

using Ookii.CommandLine;
using System.ComponentModel;
namespace AssetRipper.GUI.Web;
[GeneratedParser]
[ParseOptions(IsPosix = true)]
internal sealed partial class Arguments
{
[CommandLineArgument(DefaultValue = WebApplicationLauncher.Defaults.Port)]
[Description("If nonzero, the application will attempt to host on this port, instead of finding a random unused port.")]
public int Port { get; set; }
[CommandLineArgument(DefaultValue = WebApplicationLauncher.Defaults.Log)]
[Description("If true, the application will log to a file.")]
public bool Log { get; set; }
[CommandLineArgument(DefaultValue = WebApplicationLauncher.Defaults.LogPath)]
[Description("The file location at which to save the log, or a sensible default if not provided.")]
public string? LogPath { get; set; }
[CommandLineArgument("local-web-file")]
[Description("Files provided with this option will replace online sources.")]
public string[]? LocalWebFiles { get; set; }
[CommandLineArgument(DefaultValue = false)]
[Description("If true, a browser window will not be launched automatically.")]
public bool Headless { get; set; }
}