mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 17:22:16 -05:00
Actually check for unknown args for function
This commit is contained in:
parent
45e4897dc7
commit
8b35229650
@ -205,7 +205,10 @@ public class ApgService extends Service {
|
|||||||
while (_iter.hasNext()) {
|
while (_iter.hasNext()) {
|
||||||
String _cur_key = _iter.next();
|
String _cur_key = _iter.next();
|
||||||
try {
|
try {
|
||||||
arg.valueOf(_cur_key);
|
arg _cur_arg = arg.valueOf(_cur_key);
|
||||||
|
if( !all_args.contains(_cur_arg)) {
|
||||||
|
pReturn.getStringArrayList(ret.WARNINGS.name()).add("Unknown argument: " + _cur_key);
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
pReturn.getStringArrayList(ret.WARNINGS.name()).add("Unknown argument: " + _cur_key);
|
pReturn.getStringArrayList(ret.WARNINGS.name()).add("Unknown argument: " + _cur_key);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user