Added verbose option

This commit is contained in:
Kenneth Skovhede
2013-05-29 21:13:35 +02:00
parent 02d54e072b
commit 3c73c48611
3 changed files with 31 additions and 1 deletions
+7 -1
View File
@@ -406,6 +406,7 @@ namespace Duplicati.Library.Main
new CommandLineArgument("compression-extension-file", CommandLineArgument.ArgumentType.Path, Strings.Options.CompressionextensionfileShort, string.Format(Strings.Options.CompressionextensionfileLong, DEFAULT_COMPRESSED_EXTENSION_FILE), DEFAULT_COMPRESSED_EXTENSION_FILE),
new CommandLineArgument("quiet-console", CommandLineArgument.ArgumentType.Boolean, Strings.Options.QuietconsoleShort, Strings.Options.QuietconsoleLong, "false"),
new CommandLineArgument("verbose", CommandLineArgument.ArgumentType.Boolean, Strings.Options.VerboseShort, Strings.Options.VerboseLong, "false"),
new CommandLineArgument("overwrite", CommandLineArgument.ArgumentType.Boolean, Strings.Options.OverwriteShort, Strings.Options.OverwriteLong, "false"),
@@ -1112,10 +1113,15 @@ namespace Duplicati.Library.Main
public bool NoConnectionReuse { get { return GetBool("no-connection-reuse"); } }
/// <summary>
/// A value indicating if console output is redirected to the log file
/// A value indicating if console output is prohibited
/// </summary>
public bool QuietConsole { get { return GetBool("quiet-console"); } }
/// <summary>
/// A value indicating if the output should be verbose
/// </summary>
public bool Verbose { get { return GetBool("quiet-console"); } }
/// <summary>
/// A value indicating restored files overwrite existing ones
/// </summary>
+18
View File
@@ -1320,6 +1320,24 @@ namespace Duplicati.Library.Main.Strings {
}
}
/// <summary>
/// Looks up a localized string similar to Use this option to increase the amount of output generated when running an option. Generally this option will produce a line for each file processed..
/// </summary>
internal static string VerboseLong {
get {
return ResourceManager.GetString("VerboseLong", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Output more progress information.
/// </summary>
internal static string VerboseShort {
get {
return ResourceManager.GetString("VerboseShort", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to By default, Duplicati will list and restore files from the most recent backup, use this option to select another item. You may enter multiple values separated with comma, and ranges using -, e.g. &quot;0,2-4,7&quot; ..
/// </summary>
@@ -555,4 +555,10 @@
<data name="OverwriteLong" xml:space="preserve">
<value>Use this option to overwrite target files when restoring, if this option is not set the files will be restored with a timestamp and a number appended.</value>
</data>
<data name="VerboseShort" xml:space="preserve">
<value>Output more progress information</value>
</data>
<data name="VerboseLong" xml:space="preserve">
<value>Use this option to increase the amount of output generated when running an option. Generally this option will produce a line for each file processed.</value>
</data>
</root>