From 1975de9463b5f5bec387a496bd56f98b02ae5e85 Mon Sep 17 00:00:00 2001 From: Yudi Date: Mon, 24 Sep 2018 21:35:54 -0300 Subject: [PATCH] CLI date format --- Troubleshooting.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/Troubleshooting.md b/Troubleshooting.md index 47332fb..d914869 100644 --- a/Troubleshooting.md +++ b/Troubleshooting.md @@ -4,18 +4,27 @@ The instructions to find your Token are [here](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs). ### Where is Channel ID? -The instructions to find a Channel ID are [here](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs). +The instructions to find Channel IDs are [here](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs). + + +# CLI ### How do I use the CLI? Just run the CLI without parameters, it should output the usage instructions. +### How can I change the date format? +Date formats can be changed with the --dateformat option. The default one is `dd-MMM-yyyy hh:mm tt`. + +`dd` for day, `MMM` for abbreviated month, `yyyy` year, `hh` 12-hour clock, `mm` minute 00 through 59, and `tt` for AM/PM. + +More info about .NET date formats [here](https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings). + ### Option '-b' parse error: could not parse '\' to 'System.Boolean' -`-b` does not require a value, it just tells that the token is a bot token. -The correct usage is: +`-b` does not require a value, it just tells that the token is a bot token. The correct usage is: `DiscordChatExporter.Cli.exe -t -b -c ` -# Linux +## Linux ### Unhandled Exception ``` @@ -29,13 +38,13 @@ Make sure you've installed Mono correctly. The instructions are available [here] Run `su` on Terminal, then `adduser USER sudo`, replacing `USER` with your username. Reboot. -# macOS +## macOS ### Mono command not found -If you're trying to execute mono within a script, make sure you include its path. +If you're trying to execute mono within a script, make sure you include the PATH variable. Adding `PATH=/Library/Frameworks/Mono.framework/Versions/Current/bin/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin` before the mono command should solve this. *** -If you weren't able to find a solution here, please [open a new issue](https://github.com/Tyrrrz/DiscordChatExporter/issues/new). \ No newline at end of file +If the solution for your problem isn't here, please [open a new issue](https://github.com/Tyrrrz/DiscordChatExporter/issues/new). \ No newline at end of file