# param

Optional

Defines a positional parameter. This is only displayed in the --help text and has no other technical meaning.

title  'Developer Tools'

usage  'backup [PATH]'
param  'PATH', 'Target directory to backup to [default: /tmp]'
action 'backup' do |args|
  path = args['PATH'] || '/tmp'
  puts "Backing up to #{path}"
end
$ run --help
Developer Tools

Usage:
  run backup [PATH]
  run (--help | -h)

Parameters:
  PATH
    Target directory to backup to [default: /tmp]

Options:
  --help, -h
    Show this message

$ run backup ~/bak
Backing up to /home/vagrant/bak