Code Monkey home page Code Monkey logo

consolable's Introduction

Consolable

License Gratipay Build status Coverage Status Issue Stats Issue Stats

When you get it wrong, we are here to help. Command-Line parsing for C# that is more helpful when the arguments are wrong.

Elevator Pitch

Don't you hate using an application that just prints USAGE when you type something wrong? Isn't is painful when you have to read an entire string of command-line arguments to find your mistake? As a developer, do you get sick of parsing arguments to give users better feedback? Well, do I have a solution for you!

The goals of this library are to:

  • Make it clear which argument is ill-formatted
    • Easily print out which argument(s) is/are missing values
    • Easily print out which arguments don't exist
    • Easily print out full USAGE based on configuration
  • In code, It should get the job done and get out of your way
  • Support a flexible choice between how users want to format their arguments
    • flags support 0, 1, or many argument values
    • formats should support space, colon and equals delimiters
    • flags should work with either - or / for short, and -- for long arguments
    • eg -d: /d: -d= /d= /d value -d -abcd --dflag --dflag=
  • Support optional leading mode-name argument, as well as trailing argument(s) (where applicable)

###Stretch Goals: ###

  • Make Porting easy
    • Build an adapter for docopt usage.txt files
    • Build a fluent adapter similar to some cli frameworks
    • Build an attributes-driven adapter similar to some cli frameworks
  • Meet as much of the syntax standards as possible out of the box, at the same time
  • Support app modes is a convenient way, with seperate argument configurations.

consolable's People

Contributors

csmacnz avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.