lib/dpl/cli.rb in dpl-2.0.0.alpha.11 vs lib/dpl/cli.rb in dpl-2.0.0.alpha.12
- old
+ new
@@ -20,13 +20,18 @@
def runner(args)
super(normalize(args))
end
def normalize(args)
+ args = unescape(args)
args = untaint(args)
args = with_cmd_opts(args, provider: 0, strategy: 1)
args = with_strategy_default(args, :strategy) # should be a generic dispatch feature in Cl
args
+ end
+
+ def unescape(args)
+ args.map { |arg| arg.gsub('\\n', "\n") }
end
# Tainting is being used for automatically obfuscating values for secure
# options, so we want to untaint all incoming args here.
def untaint(args)