function deploytool(varargin)

%DEPLOYTOOL MATLAB Compiler user interface
%
%    This function will start the MATLAB Compiler user interface. You can 
%    create, build and package various deployment projects using Compiler
%    apps, or you can build and package existing projects from the Command 
%    Line Interface.
%
%    USAGE:
%    DEPLOYTOOL will not accept -build or -package in a future release.
%    Use mcc, deployment scenario specific functions such as 
%    compiler.build.standaloneApplication, and compiler.package.installer
%    instead.
%
%    DEPLOYTOOL will open a dialog for selecting a MATLAB Compiler app to
%    begin a new project in.
%
%    DEPLOYTOOL projectname will open an existing MATLAB Compiler project. 
%    If the project does not exist, an error will be generated and the 
%    program will exit.
%
%    DEPLOYTOOL -build projectname will build an existing project 
%    from the Command Line Interface.
% 
%    DEPLOYTOOL -package projectname will package an existing project from 
%    the Command Line Interface.
%
%    DEPLOYTOOL -? will display this message.
%
%    See also applicationCompiler, compiler.package.installer, 
%    libraryCompiler, mbuild, mcc, productionServerCompiler, webAppCompiler

% Copyright 1984-2019 The 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{:})
