#-----------------------------------------------------------
# Copyright Christian Arnault LAL-Orsay CNRS
# arnault@lal.in2p3.fr
# Modified by garonne@lal.in2p3.fr
# Modified by Grigory Rybkin
# See the complete license in cmt_license.txt "http://www.cecill.info". 
#-----------------------------------------------------------

complete cmt p/1/'`echo broadcast build check check_files checkout co cleanup config create create_project expand filter help lock relocate remove run setup show system unlock version ; if (${?CVSROOT}) echo cvstags cvsbranches cvssubpackages cvssubprojects`'/ \
 n/make/'`cmt -quiet show constituent_names; cmt -quiet show groups; echo check all binclean help`'/ \
 n/broadcast/'(-begin= -select= -exclude= -local -global -depth=)'/ \
 n/'-{begin=,select=,exclude=,local,global,depth=}'/c/ \
 n/'{br,run}'/c/ \
 n/build/'(CMT_pacman constituent_makefile constituents_makefile dependencies library_links make_setup msdev os9_makefile prototype readme tag_makefile temporary_name triggers win_makefile)'/ \
 n/check_files/f/ \
 n/expand/'(model)'/ \
 n/show/'(action action_names action_value actions alias alias_names alias_value aliases all_tags applied_patterns author branches clients cmtpath_patterns constituent constituent_names constituents container cycles fragment fragments groups include_dirs language languages macro macro_names macro_value macros manager packages path pattern patterns projects project_author pwd set set_names set_value sets strategies tags use_paths uses versions)'/ \
 n/constituents_makefile/n/ \
 n/constituent/'`cmt -quiet show constituent_names`'/ \
 n@fragment@'`cmt -quiet show fragments | sed -e "s#.*/fragments/##"`'@ \
 n/action/'`cmt -quiet show action_names`'/ \
 n/action_value/'`cmt -quiet show action_names`'/ \
 n/alias/'`cmt -quiet show alias_names`'/ \
 n/alias_value/'`cmt -quiet show alias_names`'/ \
 n/macro/'`cmt -quiet show macro_names`'/ \
 n/macro_value/'`cmt -quiet show macro_names`'/ \
 n/pattern/'`cmt -quiet show pattern_names`'/ \
 n/set/'`cmt -quiet show set_names`'/ \
 n/set_value/'`cmt -quiet show set_names`'/ \
 n/triggers/'`cmt -quiet show constituent_names`'/ \
 'n/c{o,heckout}/(-l -R -r -C -i -vd -d -o -requirements -no_config -rs --help)/' \
 n/check/'(configuration files version)'/
