function applicationCompiler(varargin)

%APPLICATIONCOMPILER Application Compiler app
%
%    This function will start the Standalone Compiler. You can create,
%    build and package standalone deployment projects using the Application
%    Compiler app.
%
%    USAGE:
%    applicationCompiler will start the app with an empty Standalone
%    Compiler project.
%
%    applicationCompiler projectname will open an existing project in the
%    app. If the project does not exist, an error will be generated and the
%    program will exit.
%
%    See also compiler.build.standaloneApplication,
%    compiler.build.standaloneWindowsApplication,
%    compiler.package.installer, createDeploymentScript, mcc

% Copyright 2013-2022 MathWorks, Inc.

narginchk(0,2)

% Verify Compiler license
status = license('checkout','Compiler');
if ~status
    error(message('Compiler:deploytool:license_checkout_error'))
end

compiler.internal.launchui(mfilename,varargin{:})
