parser = src.options.Options()
parser.add_option('b', 'binaries', 'boolean', 'binaries',
_('Produce a binary package.'), False)
-parser.add_option('f', 'force_creation', 'boolean', 'force_creation',
- _('Create the archive even if there are missing products.'), False)
parser.add_option('s', 'sources', 'boolean', 'sources',
_('Produce a compilable archive of the sources of the application.'), False)
parser.add_option('p', 'project', 'string', 'project',
_('Produce an archive that contains a project.'), "")
-parser.add_option('', 'sat', 'boolean', 'sat',
+parser.add_option('', 'salometools', 'boolean', 'sat',
_('Produce an archive that contains salomeTools.'), False)
parser.add_option('n', 'name', 'string', 'name',
_('The name or full path of the archive.'), None)
test)
opts2=$(echo --base --display --grid --launcher --session $opts2)
;;
+ package)
+ opts2=$(echo --name --project --salometools $opts2)
+ ;;
esac
COMPREPLY=( $(compgen -W "${opts2}" -- ${cur}) )
# first argument => show available commands
if [[ ${argc} == 1 ]]
then
- opts="config log testcommand source patch prepare environ clean configure make makeinstall compile launcher run jobs job shell test --help"
+ opts="config log testcommand source patch prepare environ clean configure make makeinstall compile launcher run jobs job shell test package --help"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
fi
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
+ package)
+ opts="--name --binaries --sources --project --salometools --with_vcs"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
*) return 0 ;;
esac