diff --git a/DiscordChatExporter.Cli/Program.cs b/DiscordChatExporter.Cli/Program.cs index 49c2115..ef19767 100644 --- a/DiscordChatExporter.Cli/Program.cs +++ b/DiscordChatExporter.Cli/Program.cs @@ -2,6 +2,7 @@ using System.Reflection; using DiscordChatExporter.Core.Models; using Fclp; +using Tyrrrz.Extensions; namespace DiscordChatExporter.Cli { @@ -12,18 +13,21 @@ namespace DiscordChatExporter.Cli private static void ShowHelp() { var version = Assembly.GetExecutingAssembly().GetName().Version; + var availableFormats = Enum.GetNames(typeof(ExportFormat)); Console.WriteLine($"=== Discord Chat Exporter (Command Line Interface) v{version} ==="); Console.WriteLine(); Console.WriteLine("[-t] [--token] Discord authorization token."); Console.WriteLine("[-c] [--channel] Discord channel ID."); - Console.WriteLine("[-f] [--format] Export format (PlainText/HtmlDark/HtmlLight). Optional."); + Console.WriteLine("[-f] [--format] Export format. Optional."); Console.WriteLine("[-o] [--output] Output file path. Optional."); Console.WriteLine(" [--datefrom] Limit to messages after this date. Optional."); Console.WriteLine(" [--dateto] Limit to messages before this date. Optional."); Console.WriteLine(" [--dateformat] Date format. Optional."); Console.WriteLine(" [--grouplimit] Message group limit. Optional."); Console.WriteLine(); + Console.WriteLine($"Available export formats: {availableFormats.JoinToString(", ")}"); + Console.WriteLine(); Console.WriteLine("# To get authorization token:"); Console.WriteLine(" - Open Discord app"); Console.WriteLine(" - Log in if you haven't");