#! /usr/bin/perl use strict; use warnings; use WIT::Utils; use WIT::Const; use WIT::Opts; sub usage { print heredoc < \&usage, v => \&version, }; $opts->{s} = 'global' unless $opts->{s}; unless ($opts->{o}) { fail 'no option specified'; } unless ($opts->{s} =~ RE_SCOPE) { fail 'invalid scope specified'; } unless (@ARGV) { warn 'no value specified' unless $opts->{q}; } unless ($opts->{q}) { mesg "wit-set ($opts->{s}): $opts->{o} = @ARGV"; }