GP-7125: Fixed a bug that prevented the GhidraScript ask() methods from

consuming script arguments in GUI mode (Closes #9463)
This commit is contained in:
Ryan Kurtz
2026-08-07 09:53:59 -04:00
parent 1373134a93
commit 291d5c4e77

View File

@@ -1962,7 +1962,7 @@ public abstract class GhidraScript extends FlatProgramAPI {
private <T> T loadAskValue(T defaultValue, StringTransformer<T> transformer, String key) {
boolean isHeadless = isRunningHeadless();
if (isHeadless && scriptArgs.length > 0) {
if (scriptArgs.length > 0) {
// this will throw IllegalArgumenrException if the args cannot be parsed
return transformer.apply(nextScriptArg());
}