From 171e3168e3b0f2edb134e622df3ccbbc0ae62a59 Mon Sep 17 00:00:00 2001 From: Daniele Tricoli Date: Sat, 8 Dec 2018 19:30:57 +0100 Subject: [PATCH] Mention the -w flag --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 935f9eb..fb0bcde 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ a key not present in the configuration file it's ignored. Given the following configuration file: ``` -❯ cat conf.txt +❯ cat conf.txt Author.Name = eriol # This comment will be stripped out Author.Like = rust, python @@ -29,8 +29,16 @@ The.cake.is: a lie # this will be ignored since not in the configuration file `conf-form` will produce: ``` -❯ conf-form --config conf.txt --profile p1.yaml +❯ conf-form --config conf.txt --profile p1.yaml Author.Name = eriol Author.Like = rust, python, c++ ``` +Warnings for keys only present in profiles can be showed using `-w` flag. + +``` +❯ conf-form -w --config conf.txt --profile p1.yaml +Warning: The.cake.is key is not present in config file. +Author.Name = eriol +Author.Like = rust, python, c++ +```