preparae --conf instead of -conf

This commit is contained in:
Tan Jiang 2017-02-20 11:16:55 +08:00
parent a17cd5bcfe
commit c3c1b84ed1
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ compile:check_environment $(COMPILETAG)
prepare: prepare:
@echo "preparing..." @echo "preparing..."
@$(MAKEPATH)/$(PREPARECMD) -conf $(CONFIGPATH)/$(CONFIGFILE) @$(MAKEPATH)/$(PREPARECMD) --conf $(CONFIGPATH)/$(CONFIGFILE)
build_common: version build_common: version
@echo "buildging db container for photon..." @echo "buildging db container for photon..."

View File

@ -59,7 +59,7 @@ config_dir = os.path.join(base_dir, "common/config")
templates_dir = os.path.join(base_dir, "common/templates") templates_dir = os.path.join(base_dir, "common/templates")
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument('-conf', dest='cfgfile', default=base_dir+'/harbor.cfg',type=str,help="the path of Harbor configuration file") parser.add_argument('--conf', dest='cfgfile', default=base_dir+'/harbor.cfg',type=str,help="the path of Harbor configuration file")
args = parser.parse_args() args = parser.parse_args()