From: Jose Perez Carranza <jose.perez.carra...@linux.intel.com> Add an error message for the cases when “setup” is selected and no sub parameters are given.
Signed-off-by: Jose Perez Carranza <jose.perez.carra...@linux.intel.com> --- testopia_update.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testopia_update.py b/testopia_update.py index 0015d69..8080256 100755 --- a/testopia_update.py +++ b/testopia_update.py @@ -72,7 +72,6 @@ def connect_to_testopia(): config = None opts = Options() - #testopia_config = ['url', 'username', 'password', 'store_location'] testopia_config = ['url', 'username', 'password'] if not args.config and os.path.exists(DEFAULT_CONFIG_FILE): @@ -270,6 +269,9 @@ if __name__ == '__main__': print(wikivars) create_wiki(wikivars, wikivars_list) + else: + logger.error("Sub arguments --clone-templates or --create-wiki should be given") + sys.exit(0) -- 2.11.0 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto