./share/scripts/toolchain in docker-utils-0.1.26 vs ./share/scripts/toolchain in docker-utils-0.1.27
- old
+ new
@@ -7,10 +7,11 @@
'LANG',
'PWD',
'OLDPWD',
'PS1',
'SHELL',
+ 'SHLVL',
'USER',
'_'
]
require 'optparse'
@@ -27,10 +28,10 @@
toolchain_own_args, toolchain_subcommand_args = toolchain_subcommand_args.partition.each_with_index{ |x, i| i <= subcommand_delim_pos }
ARGV.concat(toolchain_own_args[0..-2])
end
OptionParser.new do |opts|
- opts.on("-i", "--image", "Run within the specified toolchain image") do |image_name|
+ opts.on("-i=IMAGE", "--image=IMAGE", "Run within the specified toolchain image") do |image_name|
options[:toolchain_image] = image_name
end
opts.on("-b", "--[no-]bind-net", "Run the command in the host's network namespace") do |v|
options[:bind_net] = v