function tool = getBuildTool(h,name)

%   Copyright 2014-2018 The MathWorks, Inc.

narginchk( 2, 2 );
name = convertStringsToChars(name);
if strcmpi( name, 'all' )
    tool.attributes = h.BuildTools.keys;
    tool.values = h.BuildTools.values;
else
    name = h.updateIfUsingAlias( name );
    h.checkBuildToolsForGetSet( 'build', name );
    tool = h.BuildTools.getValue( name );
end
end
