From 4868d6314c2bcf81b2ff3c683f2c1df201c74be3 Mon Sep 17 00:00:00 2001 From: Lionel Gauthier <lionel.gauthier@eurecom.fr> Date: Tue, 9 Dec 2014 19:45:35 +0000 Subject: [PATCH] config file can be set by -O (like enb exe) (harmonization for oai_build scripts) git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6226 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair-cn/UTILS/mme_config.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openair-cn/UTILS/mme_config.c b/openair-cn/UTILS/mme_config.c index 4b37df2128..54470f2ba6 100644 --- a/openair-cn/UTILS/mme_config.c +++ b/openair-cn/UTILS/mme_config.c @@ -605,9 +605,11 @@ int config_parse_opt_line(int argc, char *argv[], mme_config_t *mme_config_p) int c; mme_config_init(mme_config_p); /* Parsing command line */ - while ((c = getopt (argc, argv, "c:hi:K:v:V")) != -1) { + while ((c = getopt (argc, argv, "O:c:hi:K:v:V")) != -1) { switch (c) { - case 'c': { + case 'O': + case 'c': + { /* Store the given configuration file. If no file is given, * then the default values will be used. */ -- GitLab