def shared_options(except: [])
unless except.include? :path
method_option :path,
type: :string,
default: './',
aliases: ['-p']
end
unless except.include? :clean
method_option :clean,
type: :boolean,
default: false
end
unless except.include? :unattended
method_option :unattended,
type: :boolean,
default: false,
desc: 'Experimental: Never prompt for input, expecting all input from the original invocation. Many '\
'commands invoked with this option will just crash.'
end
end