[DEV] change basic build clean extention module name -clean to ?clean

This commit is contained in:
Edouard DUPIN 2015-05-04 21:39:15 +02:00
parent 8a654def1b
commit 6d0894a134
3 changed files with 6 additions and 6 deletions

View File

@ -49,7 +49,7 @@ localArgument = myLutinArg.parse()
def usage(): def usage():
# generic argument displayed : # generic argument displayed :
myLutinArg.display() myLutinArg.display()
print(" All target can finish with '-clean' '-dump' ...") print(" All target can finish with '?clean' '?dump' ... ?action")
print(" all") print(" all")
print(" build all (only for the current selected board) (bynary and packages)") print(" build all (only for the current selected board) (bynary and packages)")
print(" clean") print(" clean")

View File

@ -369,7 +369,7 @@ class Target:
mod.clean(self) mod.clean(self)
else: else:
# get the action an the module .... # get the action an the module ....
gettedElement = name.split("-") gettedElement = name.split("?")
moduleName = gettedElement[0] moduleName = gettedElement[0]
if len(gettedElement)>=2: if len(gettedElement)>=2:
actionName = gettedElement[1] actionName = gettedElement[1]
@ -377,7 +377,7 @@ class Target:
actionName = "build" actionName = "build"
debug.verbose("requested : " + moduleName + "-" + actionName) debug.verbose("requested : " + moduleName + "-" + actionName)
if actionName == "install": if actionName == "install":
self.build(moduleName + "-build") self.build(moduleName + "?build")
self.install_package(moduleName) self.install_package(moduleName)
elif actionName == "uninstall": elif actionName == "uninstall":
self.un_install_package(moduleName) self.un_install_package(moduleName)