function [key,val] = findBuildArg(h,keyname)
%FINDBUILDARG this function searches for a BuildArg that has the matching
%keyname

% Copyright 2004-2019 The MathWorks, Inc.
keyname = convertStringsToChars(keyname);

key = '';
val = '';


kvPair = findKeyValuePair(h, 'BuildArg', keyname);

if ~isempty(kvPair)
    key = kvPair.Key;
    val = kvPair.Value;
end
