Skip to content

Commit

Permalink
Console arg name change
Browse files Browse the repository at this point in the history
  • Loading branch information
zabszk committed Nov 23, 2022
1 parent e5277cb commit e1505fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Core/LocalAdmin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ internal async Task Start(string[] args)
Singleton = this;
Console.Title = BaseWindowTitle;

if (!PathManager.IsLinuxCorrectPath && !args.Contains("--skip-home-check"))
if (!PathManager.IsLinuxCorrectPath && !args.Contains("--skipHomeCheck", StringComparer.Ordinal))
{
ConsoleUtil.WriteLine($"Welcome to LocalAdmin version {VersionString}!", ConsoleColor.Red);
ConsoleUtil.WriteLine("Can't obtain a valid user home directory path!", ConsoleColor.Red);
ConsoleUtil.WriteLine("Make sure to export a valid path, for example using command: export HOME=/home/username-here", ConsoleColor.Red);
ConsoleUtil.WriteLine("You may want to add that command to the top of ~/.bashrc file and restart the terminal session to avoid having to enter that command every time.", ConsoleColor.Red);
ConsoleUtil.WriteLine("To skip this check, use --skip-home-check argument.", ConsoleColor.Red);
ConsoleUtil.WriteLine("To skip this check, use --skipHomeCheck argument.", ConsoleColor.Red);

Terminate();
return;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Linux: `./LocalAdmin [port] [arguments] [-- arguments passthrough]`
| --noAlign | -a | Disables multiline log entries alignment. |
| --dismissPluginManagerSecurityWarning | | Dismisses Plugin Manager security warning. |
| --disableTrueColor | | Disables True Color output. |
| --skip-home-check | | Skips `home` env var checking on startup (linux only). |
| --skipHomeCheck | | Skips `home` env var checking on startup (linux only). |
| --restartsLimit | | Specifies a limit of auto-restarts in a specified time window.<br>Setting this argument to 0 disables auto-restarts.<br>Setting this argument to -1 disables the limit.<br>*Default value: 4* |
| --restartsTimeWindow | | Specifies a time window (in seconds) for the auto-restarts limit.<br>Setting this argument to 0 disables resetting the amount of auto-restarts after a specified amount of time.<br>*Default value: 480* |
| --logLengthLimit | | Specifies the limit of characters in LocalAdmin log file.<br>Suffixes `k`, `M`, `G` and `T` are supported, eg. `5G` is equal to `5000000000` characters.<br>Setting this argument to 0 disables the limit.<br>*Default value: 25G* |
Expand Down

0 comments on commit e1505fc

Please sign in to comment.