bug fix in build script

This commit is contained in:
Emmanuel Viennet 2021-05-19 10:11:36 +02:00
parent 52b7ec3d10
commit 21adab834c
2 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,7 @@ usage() {
exit 1 exit 1
} }
[ $# != 2 ] || [ $# != 3 ] || usage [ $# != 2 ] || [ $# != 3 ] || usage
CCN="" CCN="--acd"
if [ "$1" == "--ccn" ] if [ "$1" == "--ccn" ]
then then
CCN="--ccn" CCN="--ccn"

View File

@ -28,6 +28,12 @@ parser.add_argument(
action="store_true", action="store_true",
help="génère éléments pour version CCN (moins de détails)" help="génère éléments pour version CCN (moins de détails)"
) )
parser.add_argument(
"-i",
"--acd",
action="store_true",
help="génère éléments pour version ACD (tous les détails) (par défaut)"
)
args = parser.parse_args() args = parser.parse_args()
Config.ROOT = args.root Config.ROOT = args.root
Config.ccn = args.ccn Config.ccn = args.ccn