Skip to content

Commit

Permalink
Improve --selector flag help
Browse files Browse the repository at this point in the history
  • Loading branch information
bouk committed Jan 15, 2018
1 parent 449814d commit 3c3e198
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exe/kubernetes-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ ARGV.options do |opts|
opts.on("--no-prune", "Disable deletion of resources that do not appear in the template dir") { prune = false }
opts.on("--template-dir=DIR", "Set the template dir (default: config/deploy/$ENVIRONMENT)") { |v| template_dir = v }
opts.on("--verbose-log-prefix", "Add [context][namespace] to the log prefix") { verbose_log_prefix = true }
opts.on("--selector=key1=value1,key2=value2", "Use selector to filter which resources to prune") do |s|
opts.on("--selector=SELECTOR", "Use selector to filter which resources to prune and apply the templates to. " \
"All the templates need to match the selector or the command will fail (format: k1=v1,k2=v2 or JSON)") do |s|
selector = KubernetesDeploy::BindingsParser.parse(s)
end

Expand Down

0 comments on commit 3c3e198

Please sign in to comment.