wordexp/exe/wordexp
Sami Samhuri fb1bc1a910
Implement the most basic API possible
There are no options exposed to Ruby yet.
2022-01-16 18:22:54 -08:00

11 lines
178 B
Ruby
Executable file

#!/usr/bin/env ruby -w
require 'wordexp'
string = ARGV.first
if string.nil? || string.strip.empty?
warn 'Usage: wordexp <string>'
exit 1
end
Wordexp::CLI.new.call(string)