Skip to main content

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

Total Downloads
77.9K
77,937
Published
Nov 14, 2026
9d ago

Get Started

dotnet add package Nullean.Argh.Interfaces --version 0.30.1
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

Downloads by Version

Similar & Alternative Packages

Hand-picked matching NuGet libraries based on tags & ecosystem

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

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.