Skip to content

Commit

Permalink
fix up some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Al Niessner authored and Al Niessner committed Aug 23, 2023
1 parent 33437de commit 0b0f9d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void validate() throws MalformedURLException, URISyntaxException {
if (!obj.getDataFile().equals(previousDataFile)) {
if (previousDataFile != null) {
long filesize = new File(previousDataFile.getPath()).length();
if (minimumExpectedOffset < filesize) {
if (this.getContext().getCompleteDescriptions() && minimumExpectedOffset < filesize) {
getListener().addProblem(new ValidationProblem(
new ProblemDefinition(ExceptionType.WARNING, ProblemType.DATA_NOT_DESCRIBED,
"Data not described at the end of the file: " + (filesize - minimumExpectedOffset) + " bytes"),
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nasa/pds/validate/ValidateLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public void query(CommandLine line) throws Exception {
throw new InvalidOptionException(
"Could not parse value '" + line.getOptionValue("everyN", "1") + "': " + a.getMessage());
}
setCompleteDescriptions(line.hasOption("complete-description"));
setCompleteDescriptions(line.hasOption("complete-descriptions"));
setPDFErrorDir(line.getOptionValue("pdf-error-dir", ""));
File dir = new File(pdfErrorDir);
if (!this.pdfErrorDir.isEmpty() && !dir.isDirectory()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public enum Flag {
CATALOG("C", "catalog", "catalog files", String.class, true,
"Specify catalog files to use during validation."),

COMPLETE_DESCRIPTIONS(null, "complete-descriptions", "value", int.class,
COMPLETE_DESCRIPTIONS(null, "complete-descriptions",
"File Areas are fully described in the sense that every bit is described within the file."),
/**
* Flag to specify a configuration file to configure the tool behavior.
Expand Down

0 comments on commit 0b0f9d0

Please sign in to comment.