Skip to main content
net11.0net8.0.NETStandard2.0

Contracts and attributes for Nullean.Argh CLI (middleware, parsers, registration surfaces). Zero external dependencies.

Published
Nov 12, 2026
10d ago
Total Downloads
77.9K
77,898

Install

dotnet add package Nullean.Argh.Interfaces --version 0.30.0
ProductVersions
.NET
net11.0net8.0
.NET Standard
netstandard2.0

README

Nullean.Argh.Interfaces

Nullean.Argh

The contracts and attributes of Nullean.Argh, for libraries that share middleware, argument parsers or option types without pulling in the runtime.

NuGet

Install

dotnet add package Nullean.Argh.Interfaces

Reference it directly when building shared libraries: reusable middleware, custom argument parsers, or shared option types. For applications, use Nullean.Argh or Nullean.Argh.Hosting instead.

Quick start

A custom argument parser, which any Argh app can use for its parameters:

using Nullean.Argh.Parsing;

public readonly record struct Port(int Value);

public sealed class PortParser : IArgumentParser<Port>
{
	public bool TryParse(string raw, out Port value)
	{
		var ok = int.TryParse(raw, out var n) && n is > 0 and < 65536;
		value = new Port(ok ? n : 0);
		return ok;
	}
}

What's inside

  • IArghBuilder and IArghNamespaceBuilder: the builder contracts.
  • IArgumentParser<T>: the custom type parser interface.
  • ICommandMiddleware and the middleware delegates: pipeline extension points.
  • All attributes: [Argument], [AsParameters], [ArgumentParser], [CommandName], [DefaultCommand], [Hidden], [Existing], [Env] and more.

It targets netstandard2.0, net8.0 and net11.0, and depends on nothing beyond the BCL (System.Threading.Tasks.Extensions on netstandard2.0), so it is safe to reference from any library.

Learn more

Changes from Previous Version

No structural changes between v0.29.0 and v0.30.0.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.