mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-08-08 07:40:39 -09:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user