From e8c6a9112f1ce8864c556a20136bcbd991aec332 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 18 Jun 2020 08:46:57 +1000 Subject: [PATCH] fix bug parsing -profile parameter --- .../src/main/java/org/hl7/fhir/validation/cli/utils/Params.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/Params.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/Params.java index 7a6b3a840..ddfdf0401 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/Params.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/Params.java @@ -99,7 +99,7 @@ public class Params { throw new Error("Specified -profile without indicating profile source"); } else { p = args[++i]; - cliContext.addProfile(args[i++]); + cliContext.addProfile(p); } if (p != null && i + 1 < args.length && args[i + 1].equals("@")) { i++;