Skip to content

Commit

Permalink
Fixed error when scanning after clearing previously scanned images.
Browse files Browse the repository at this point in the history
Fixed console help text.
  • Loading branch information
cyanfish committed Sep 25, 2013
1 parent e9cc86b commit 861eefe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions NAPS2.Console/AutomatedScanningOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ namespace NAPS2.Console
public class AutomatedScanningOptions : CommandLineOptions
{
[Option('o', "output", HelpText = "The name and path of the file to save." +
" The extension determines the output type (e.g. .pdf for a PDF file, .jpg for a JPEG)." +
" You can use \"<date>\" and/or \"<time>\" to insert the date/time of the scan.")]
" The extension determines the output type (e.g. .pdf for a PDF file, .jpg for a JPEG).")]
//" You can use \"<date>\" and/or \"<time>\" to insert the date/time of the scan.")]
public string OutputPath { get; set; }

[Option('p', "profile", HelpText = "The name of the profile to use for scanning." +
Expand All @@ -54,17 +54,17 @@ public class AutomatedScanningOptions : CommandLineOptions
public bool WaitForEnter { get; set; }

[Option('e', "email", HelpText = "The name of the file to attach to an email." +
" The extension determines the output type (e.g. .pdf for a PDF file, .jpg for a JPEG)." +
" You can use \"<date>\" and/or \"<time>\" to insert the date/time of the scan.")]
" The extension determines the output type (e.g. .pdf for a PDF file, .jpg for a JPEG).")]
//" You can use \"<date>\" and/or \"<time>\" to insert the date/time of the scan.")]
public string EmailFileName { get; set; }

[Option("subject", HelpText = "The email message's subject." +
" You can use \"<date>\" and/or \"<time>\" to insert the date/time of the scan." +
//" You can use \"<date>\" and/or \"<time>\" to insert the date/time of the scan." +
" Requires -e/--email.")]
public string EmailSubject { get; set; }

[Option("body", HelpText = "The email message's body text." +
" You can use \"<date>\" and/or \"<time>\" to insert the date/time of the scan." +
//" You can use \"<date>\" and/or \"<time>\" to insert the date/time of the scan." +
" Requires -e/--email.")]
public string EmailBody { get; set; }

Expand Down
1 change: 1 addition & 0 deletions NAPS2/Scan/Images/FileBasedScannedImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public void Dispose()
{
_recoveryLock.Dispose();
RecoveryFolder.Delete(true);
_recoveryFolder = null;
}
}
}
Expand Down

0 comments on commit 861eefe

Please sign in to comment.