File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,12 @@ class Options
55
55
Required = false ,
56
56
HelpText = "Path to SSH user's private key(s), if key-based auth should be attempted" ) ]
57
57
public IEnumerable < string > Keys { get ; set ; }
58
+
59
+ // Logging
60
+ [ Option ( 'v' , "verbose" ,
61
+ Required = false , Default = false ,
62
+ HelpText = "Enable Dokan logging from mounted filesystem" ) ]
63
+ public bool Logging { get ; set ; }
58
64
}
59
65
60
66
class Program
@@ -77,7 +83,7 @@ static void Start(Options options)
77
83
throw new InvalidOperationException (
78
84
"Could not connect to server with any known authentication mechanism" ) ;
79
85
80
- fs . Mount ( $ "{ options . DriveLetter } ") ;
86
+ fs . Mount ( $ "{ options . DriveLetter } ", options . Logging ? null : new NullLogger ( ) ) ;
81
87
}
82
88
83
89
static IEnumerable < ( string , ConnectionInfo ) > GetAuthMechanisms ( Options options )
You can’t perform that action at this time.
0 commit comments