1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-06 18:43:50 +00:00

fs: add support for flag --no-console on windows to hide the console window

This commit is contained in:
albertony
2021-01-24 12:28:39 +01:00
committed by Nick Craig-Wood
parent b569dc11a0
commit 7a496752f3
5 changed files with 33 additions and 0 deletions

View File

@@ -382,6 +382,11 @@ func initConfig() {
// Finish parsing any command line flags
configflags.SetFlags(ci)
// Hide console window
if ci.NoConsole {
terminal.HideConsole()
}
// Load filters
err := filterflags.Reload(ctx)
if err != nil {