Skip to content

Commit

Permalink
fix: config set/remove should tell what file it edits (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxandersen authored Jan 12, 2022
1 parent fd729a1 commit df9976f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/dev/jbang/cli/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public Integer doCall() throws IOException {
} else {
cfgFile = ConfigUtil.setNearestConfigValue(key, value);
}
Util.verboseMsg("Option '" + key + "' set to '" + value + "' in " + cfgFile);
Util.infoMsg("Option '" + key + "' set to '" + value + "' in " + cfgFile);
return EXIT_OK;
}
}
Expand All @@ -121,7 +121,7 @@ public Integer doCall() throws IOException {
cfgFile = ConfigUtil.unsetNearestConfigValue(key);
}
if (cfgFile != null) {
Util.verboseMsg("Option '" + key + "' removed from in " + cfgFile);
Util.infoMsg("Option '" + key + "' removed from in " + cfgFile);
} else {
Util.warnMsg("Cannot remove built-in option '" + key + "'");
}
Expand Down

0 comments on commit df9976f

Please sign in to comment.