A conversation with Jordan Peterson

I was featured this month on Jordan Peterson’s podcast. The experience was quite illuminating and informative, especially considering what we did not speak about: culture wars, politics, and the…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




ConsoleArgsParser

If you are a developer and have too many arguments in your program and you are searching for a way to parse them all, this is the tool you are looking for.

2. What is this tool?

This ConsoleArgsParser is a nugget package , meaning a library that lets you specify a custom scheme, a list of arguments which will be parse depending on the custom scheme that you designed. This library will tell you which arguments are present in your list, with their corresponding value.

3. Instrucciones de como instalar:

This program will be made in c#, and is divided in 9 different steps which are:

(If retrieving package from nuget.org in Nuget Package Manager)
1.Create/open a .NET Core project

2.Open Nugget Package Manager for the solution

3.Select ‘nuget.org’ as origin

This is the part where you search for things

4.Search for ‘ConsoleArgsParser’

5.Install the newest version on to the solution.

And it is installed.

There is also another choice to install which is:

(If manually downloading the nuget in Visual Studio 2017+)
1.Create/open a .NET Core project
2.Open Nuget Package Manager for the solution
3.Open the setting for the nugets origin.
4.Add a new origin
5.Name the new origin
6.Select the path for the origin (the path of the nuget package)
7.Click ‘OK’
8.Select the new origin and look up for ‘ConsoleArgsParser’
9.Install the nuget into the solution

4.Examples on how we used the program:

passing other parameters, using short form
All these photos are using the generic method || AddSchem <S> where the S can be any type of data,And the method || GeneralsParsel which receives an argument in chain format and validates it

Now we will show how we worked:

The design of the program will consist in

Schema: Array of strings(each string is a Boolean)

and a list of arguArguments: String

Response: Dictionary<string,bool>

Along with this design for the program, we are making a logo to upload it along with the library so that the library doesn't upload with the default setting logo.

2. Including a Read me in the repository

This Read Me will be in MD (Mark Down) format , MD meaning a format that is used to generate the html summary you see at the bottom of projects.

This repository will be called console args parser and the link, when the first version of the project is submitted, will be copied here for you to view

3.The code for the program

We will be making this program using the TDD technique which stands for Test Driven Development. We will only be using unit testing

The code for the program we will be using the language chosen will be in C# and the nugget package is what we will use to upload the library we made with .net core. We will make all of this in Visual Studio IDE.

4. Making this blog

5. Installing the nugget package mentioned in step 3

Add a comment

Related posts:

The Hidden Costs of Buying A Home

Ever wondered what it would mean to move from your current rental building to your own home? Take control of what you want your dream home to be

About this token offering.

The Sprtshub Token Offering starts today: Learn about the project, what we do, meet the team and get staked today! The Sprtshub.io Token Offering starts today, 13th June 2019 and there is 20 Million…

Estate Planning for new parents

Minors and Beneficiary Designations — Please be aware that you likely don’t want to name a minor directly as a beneficiary of your retirement plan or life insurance. That’s because minors are not…