We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b544213 commit 633e761Copy full SHA for 633e761
1 file changed
org.omg.sysml.jupyter.kernel/src/main/java/org/omg/sysml/jupyter/kernel/magic/Load.java
@@ -45,7 +45,9 @@ public static String load(List<String> args) {
45
List<String> name = vals.get("name");
46
List<String> id = vals.get("id");
47
48
- if (!name.isEmpty()) {
+ if (!name.isEmpty() && !id.isEmpty()) {
49
+ return "Name and id cannot be provided at the same time.";
50
+ } else if (!name.isEmpty()) {
51
return ISysML.getKernelInstance().getInteractive().loadByName(name.get(0), help);
52
} else if (!id.isEmpty()) {
53
return ISysML.getKernelInstance().getInteractive().loadById(id.get(0), help);
0 commit comments