From 09c29e910ff512d4f03200ea6079e6965e766287 Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Mon, 22 Feb 2021 16:34:14 -0600 Subject: [PATCH] Greeting for ckan prompt --- Cmdline/Action/Prompt.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Cmdline/Action/Prompt.cs b/Cmdline/Action/Prompt.cs index c8d756b7bf..520d0f847a 100644 --- a/Cmdline/Action/Prompt.cs +++ b/Cmdline/Action/Prompt.cs @@ -13,6 +13,14 @@ public Prompt() { } public int RunCommand(GameInstanceManager manager, object raw_options) { CommonOptions opts = raw_options as CommonOptions; + // Print an intro if not in headless mode + if (!(opts?.Headless ?? false)) + { + Console.WriteLine("Welcome to CKAN!"); + Console.WriteLine(""); + Console.WriteLine("To get help, type help and press enter."); + Console.WriteLine(""); + } bool done = false; while (!done) {