Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
print("verbose is ${args.contains("-v")}");
const verbose = process.argv.includes('-v');
console.log('verbose is', verbose);
for i in paramcount do
begin
if paramstr(i)='-v' then
begin
verbose := true;
break;
end;
writeln('verbose is ',verbose);
end.
#!/usr/bin/perl -s
use strict;
use warnings;
use vars qw($v);
$v ||= 0;
print 'verbose is ' . ($v ? 'true' : 'false') . "\n";