Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 198075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:54:26+00:00 2026-05-11T16:54:26+00:00

Forget fancy shmancy web stuff. I’m looking for a good .NET CLI argument processing

  • 0

Forget fancy shmancy web stuff. I’m looking for a good .NET CLI argument processing utility, prefer open source code. This is for quick and dirty utilities that need robust and friendly command line argument handling.

These are utilities with maybe a day of effort in them. Investing a few days writing good command line handling seems overkill … but they really need it.

Features I like in command line handlers. I’d be thrilled with any open source project that had 2 or 3 of the following.

  • A consistent syntax, posix had a nice command line standard, but not necessarily posix.
  • Ability to provide short names for agruments. E.g. “msbuild /t” == “msbuild /target”
  • It supports good command line parsing then gets out of the way. I want some that my code uses, not something that imposes a pattern on my code e.g. I don’t want to have to respond to the presence of an arg with an event, that type of thing.
  • Seperation of concerns is good enough that it’s logic can be unit tested.
  • Oh – is it two much to ask for it to read attributes off a class properties (as in .NET configuration classes)?
  • I like the config file overrides in msbuild. I can set properties in a build file, but override on the command line.
  • Built in “show usage”. WSF files (csript.exe) have this functionality. I’m not willing to write jscript to get the command line handling though.
  • Not powershell. I can’t find anyone in my company who can stand Powershell syntax.

PS If I don’t find such a thing, I’ll probably drop one on google code in the next few weeks

PPS If I could add tags, I’d tag this “pleasesearchtheinternetforme”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:54:26+00:00Added an answer on May 11, 2026 at 4:54 pm

    Also from codePlex, the CommandLine project seems to meet your requirements. A Liberal application of copy/paste from the projects home page gives …

    The Command Line Parser Library offers to CLR applications a simple programming interface for manipulating command line input. This library allows you to display an help screen with a good degree of customization. The API keeps on its shoulders everything boring to code.

    The Command Parser Library supports:

    • Short options (-s, for example)

      • Option+Value/No space: -sHello
      • Option+Space+Value: -s Hello
    • Short options like switches; no value required

      • Option+Space+Option+……. -s -x -y -z
      • Option+Option+Option+…: -sxyz…
      • Option+Option+Space/Any Comb.: -sx -yz
    • Long options (–long, for example)

      • Option+Equal+Value: –long=Hello
      • Option+Space+Value: –long Hello
    • Composed options (its about values)

      • any 1;2;3;4 (separator is configurable)

    Common features

    Both accepts values with spaces: -s”Hello World!” –long “Hello CLR!”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 148k
  • Answers 148k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer What does the dependency declaration for my-app look like? I'd… May 12, 2026 at 9:28 am
  • Editorial Team
    Editorial Team added an answer Have you tried the sc / service controller util? Type… May 12, 2026 at 9:28 am
  • Editorial Team
    Editorial Team added an answer You can manipulate the XML to your wish with the… May 12, 2026 at 9:28 am

Related Questions

Forget fancy shmancy web stuff. I'm looking for a good .NET CLI argument processing
I always tend to forget these built-in Symfony functions for making links.
Accidentally I may forget to describe some parameters or exception throwing (or something else)
We should forget about small efficiencies, say about 97% of the time: premature optimization
I often forget about the regular expression modifiers m and s and their differences.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.