From: Antonio Ospite Date: Wed, 29 Jul 2015 20:56:42 +0000 (+0200) Subject: tweeper: avoid a reference to $argv in non-cli mode X-Git-Tag: v0.4~11 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/6529870c449d426d645115d3f35191c4b2023340?hp=6529870c449d426d645115d3f35191c4b2023340 tweeper: avoid a reference to $argv in non-cli mode $argv is not defined in non-cli mode, so protect its usage behind an is_cli() check. For instance, this avoids a message in the PHP built-in web server, when usage() gets called: PHP Notice: Undefined variable: argv in .../tweeper.php on line 357 ---