diff --git a/Scripts/Functions/Render/render.sh b/Scripts/Functions/Render/render.sh index 69fccdb..a189e22 100755 --- a/Scripts/Functions/Render/render.sh +++ b/Scripts/Functions/Render/render.sh @@ -65,6 +65,11 @@ function render { # performs directory-specific rendition. local FLAG_DONT_DIRSPECIFIC='false' + # Initialize `--with-brands' option. This option controls whether + # to brand output images or not. By default output images are not + # branded. + local FLAG_WITH_BRANDS='false' + # Initialize name of rendition backend as an empty value. The name # of rendition backend is determined automatically based on # template file extension, later, at rendition time. diff --git a/Scripts/Functions/Render/render_getOptions.sh b/Scripts/Functions/Render/render_getOptions.sh index ba2abd2..d0808bc 100755 --- a/Scripts/Functions/Render/render_getOptions.sh +++ b/Scripts/Functions/Render/render_getOptions.sh @@ -29,7 +29,7 @@ function render_getOptions { local ARGSS="" # Define long options we want to support. - local ARGSL="filter:,quiet,answer-yes,dont-commit-changes,dont-dirspecific,releasever:,basearch:,post-rendition:,last-rendition:,theme-model:" + local ARGSL="filter:,quiet,answer-yes,dont-commit-changes,dont-dirspecific,releasever:,basearch:,post-rendition:,last-rendition:,theme-model:,with-brands" # Redefine ARGUMENTS variable using getopt output. cli_parseArguments @@ -99,6 +99,11 @@ function render_getOptions { shift 2 ;; + --with-brands ) + FLAG_WITH_BRANDS='true' + shift 1 + ;; + -- ) # Remove the `--' argument from the list of arguments # in order for processing non-option arguments