It is assumed that you want to call your programme like this: e.g.
calling John
Then you must parse the arguments.
using System;
namespace calling
{
class Program
{
static int Main(string[] args)
{
if (args.Length == 0)
{
Console.WriteLine("Please enter a name.");
Console.ReadKey();
return 1;
}
Console.WriteLine($"Hello {args[0]}");
Console.ReadKey();
return 0;
}
}
}
"John" is the first argument thus its index will be 0.
Console.ReadKey();
prevents the application from exiting without you seeing anything.