From ad26c1e95ec4c2382f259c606339380b054a7d55 Mon Sep 17 00:00:00 2001 From: Mostafa Ahangarha Date: Sat, 25 Nov 2023 19:52:01 +0330 Subject: [PATCH] Read from ENV as fallback source for cli location option --- lib/command/base.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/command/base.rb b/lib/command/base.rb index 0007df5f..a6370577 100644 --- a/lib/command/base.rb +++ b/lib/command/base.rb @@ -119,7 +119,8 @@ def self.location_option(required: false) banner: "LOCATION_NAME", desc: "Location name", type: :string, - required: required + required: required, + default: ENV.fetch("CPLN_LOCATION", nil) } } end