From 73b19b9028419e7061068bde072db2a18da60124 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Tue, 10 Feb 2026 12:19:41 +0530 Subject: [PATCH] ordering --- app/cli.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cli.php b/app/cli.php index f4ed318b43..14ebea6e1c 100644 --- a/app/cli.php +++ b/app/cli.php @@ -49,12 +49,12 @@ global $register; $platform = new Appwrite(); $args = $platform->getEnv('argv'); +\array_shift($args); if (!isset($args[0])) { Console::error('Missing task name'); Console::exit(1); } -\array_shift($args); $taskName = $args[0]; $platform->init(Service::TYPE_TASK); $cli = $platform->getCli();