Code Monkey home page Code Monkey logo

dotnet-args's Introduction

README.md

dotnet-args

dotnet-args

Cross-platform .NET CLI Tool that prints the command-line arguments it receives, to help debug scripts and apps.

NuGet Version .NET .NET Core Stack Overflow

Screenshot of dotnet-args in action

Give a Star! โญ

If you like or are using this project please give it a star. Thanks!

Background

When developing applications that can receive command-line arguments, it can be useful to test what command-line arguments the application would receive without actually running the application.

Another example where dotnet-args can be useful is when writing scripts for multiple platforms (e.g. run.cmd, run.ps1, run.sh, etc.) that forward arguments to an application or another script. You can modify the scripts temporarily to forward the arguments to dotnet-args instead of the real application, and test that the scripts are forwading the arguments as expected.

Prerequisites

The latest version of dotnet-args runs on Windows, OSX, and Linux using one of the following versions of .NET:

  • .NET 7.0
  • .NET 6.0
  • .NET 5.0
  • .NET Core 3.1
  • .NET Core 2.1

Getting started ๐Ÿš€

Install the dotnet-args .NET CLI Tool from NuGet:

dotnet tool install dotnet-args --global

Next, call dotnet-args with the arguments that you'd like to test, for example:

dotnet args --file project.zip --message "My project!"

Screenshot of dotnet-args in action

More details on .NET CLI tools available on the official documentation from Microsoft.

Release History

Click on the Releases tab on GitHub.


Copyright ยฉ 2020-2023 C. Augusto Proiete & Contributors - Provided under the Apache License, Version 2.0. dotnet-args logo is a derivative of work by Goescat Wei (original).

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.