function createCLI(this, syncWithMdl)
% Create CLI object and update code gen parameters from model if any

%   Copyright 2006-2023 The MathWorks, Inc.
%     

if nargin < 2
    syncWithMdl = true;
end

this.CLI = hdlcoderprops.CLI;
% connect(this, this.CLI, 'down');

if syncWithMdl
    this.updateCLIWithModelProps;
end

% always init this property with modelname
if isempty(this.CLI.HDLSubsystem)
    this.CLI.HDLSubsystem = this.getModelName;
end

% LocalWords:  modelname
