#
help
Optional
Defines the help message for the following action.
title 'FTP Tools'
param 'PATH', 'Path to download/upload'
help 'Download data'
usage 'download PATH'
action 'download' do |args|
say "Downloading to #{args['PATH']}"
end
help 'Upload data'
usage 'upload PATH'
action 'upload' do |args|
say "Uploading from #{args['PATH']}"
end
$ run --help
FTP Tools
Usage:
run download PATH
run upload PATH
run (--help | -h)
Commands:
download
Download data
upload
Upload data
Parameters:
PATH
Path to download/upload
Options:
--help, -h
Show this message