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 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, hadoopCompiler, libraryCompiler, mcc,
%    mbuild, productionServerCompiler, webAppCompiler

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