require 'ns-options/boolean' module App # mixin on just the top-level NsOptions variant include NsOptions options(:settings, "settings:app") do option :root, Pathname option :stage option :logger, Logger option :self_stage, :default => Proc.new { self.stage } namespace :sub do option :run_commands, NsOptions::Boolean end end end