Vixen
02b45cc4
csharp
public record class AppArguments

The --vixen-* arguments the host understands, and everything else untouched.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

One prefix, reserved for the engine, so an application can define whatever arguments it likes without a collision and without the host needing to know about them. Anything not starting with --vixen- comes back in Remaining in its original order.

Unrecognised --vixen-* arguments are collected rather than ignored. A typo in a launch script that silently does nothing is how a QA build runs for a week without the profiler somebody thought they had enabled.

Fields and properties (13)

  • public IReadOnlyList<string> Remaining

    Arguments the host did not consume, in order.

  • public IReadOnlyList<string> Unrecognised

    --vixen-* arguments the host does not recognise, with their values.

  • public BuildVariant? Variant

    The variant named by --vixen-variant, or .

  • public bool Headless

    Whether --vixen-headless was given.

  • public string? VideoDriver

    The SDL video driver named by --vixen-video-driver, or .

  • public int? WorkerCount

    The worker count from --vixen-workers, or .

  • public int? FrameRateLimit

    The frame cap from --vixen-frame-limit, or .

  • public int? MaxFrames

    How many frames to run before stopping, from --vixen-frames.

  • public IReadOnlyList<GraphicsBackend> Backends

    The backend order from --vixen-backend, or empty for none given.

  • public LogLevel? LogLevel

    The level from --vixen-log-level, or .

  • public string? LogFilePath

    The directory for rolling log files, from --vixen-log-file, or for no file at all.

  • public string? LooseContentPath

    The directory from --vixen-loose-content, or .

  • public string? StartupScene

    The scene address from --vixen-scene, or .

Methods (1)

  • public static AppArguments Parse(IReadOnlyList<string>? arguments)

    Reads the --vixen-* arguments out of a command line.

Used by (6)

  • AppBuilderVixen.App.Hosting
  • AppConfigVixen.App.Hosting
  • AppArgumentsTestsVixen.App.Tests
  • AppBackendTestsVixen.App.Tests
  • BuildVariantTestsVixen.App.Tests
  • VixenAppVixen.App