
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
Niche.CommandLineProcessor
Advanced tools
A convention based argument handler for writing console applications.
Eliminate most of the boilerplate in Program.cs:
static int Main(string[] args)
{
using(var processor = new CommandLineProcessor(args))
{
processor.WhenHelpRequired(ShowHelp)
.WhenErrors(ShowErrors);
return processor.Parse<ProgramOptions>()
.Execute(Run);
}
}
For a complete working demo, see https://github.com/theunrepentantgeek/Niche.CommandLineProcessor/blob/master/src/Niche.CommandLine.Demo/Program.cs
To configure the options available, follow the following conventions:
// A switch
// (void method with no parameters)
// --verbose
// -v
[Description("Verbose output")]
public void Verbose() ...
See https://github.com/theunrepentantgeek/Niche.CommandLineProcessor/wiki/Conventions#switches for more.
// A parameter with a single value
// (void method with single parameter)
// --output-file
// -of
[Description("Destination file for output")]
public void OutputFile(string file) ...
See https://github.com/theunrepentantgeek/Niche.CommandLineProcessor/wiki/Conventions#parameters for more.
// A parameter with multiple values
// (void method with IEnumerable parameter)
// --input-file
// -if
[Description("Input files to consume")]
public void InputFile(IEnumerable<string> files)
// A distinct program mode
// (method with no parameter returning a new options instance)
// render
[Description("Render documents")]
public RenderOptions Render()
{
return new RenderOptions();
}
See https://github.com/theunrepentantgeek/Niche.CommandLineProcessor/wiki/Mode-Support for more.
FAQs
Convention based argument handling for console applications.
We found that niche.commandlineprocessor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.