diff --git a/commands/add.py b/commands/add.py index 64cc63e..fcc649f 100644 --- a/commands/add.py +++ b/commands/add.py @@ -109,6 +109,14 @@ def run(args, persoconf, logger): # Check the conf file name if ( confname == persoconf.metafile or confname in appmeta.files ): + + # If the confanme was user-defined, it's a serious error. + if args.confname: + logger.error( "Confname '%s' is already taken: try another one" + % confname ) + exit(1) + + # Otherwise it's cool, we just have to change the confname by ourselves logger.info( "Confname '%s' is already taken: trying another one" % confname )