mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
* Rename Publish-EchoArgs to Publish-PSTestTools so it can be used for other tools as well in the future * Publish EchoArgs to the bin directory instead of run to match convention * Add source URL to EchoArgs header comment * Use wildcard of "*.nuget.props" to match "test/csharp/csharp.nuget.props" in .gitignore
26 lines
734 B
C#
26 lines
734 B
C#
//---------------------------------------------------------------------
|
|
// Author: Keith Hill
|
|
// Source: https://github.com/Pscx/Pscx/blob/master/Src/EchoArgs/EchoArgs.cs
|
|
//
|
|
// Description: Very simple little console class that you can use to see
|
|
// how PowerShell is passing parameters to legacy console
|
|
// apps.
|
|
//
|
|
// Creation Date: March 06, 2006
|
|
//---------------------------------------------------------------------
|
|
using System;
|
|
|
|
namespace Pscx.Applications
|
|
{
|
|
class EchoArgs
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
for (int i = 0; i < args.Length; i++)
|
|
{
|
|
Console.WriteLine("Arg {0} is <{1}>", i, args[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|