From 8b7abe99d8c351d6f0e83aca9e12bbb8c3ea8182 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 11 Jun 2026 20:14:53 +0900 Subject: refactor(argv): use std::env::args instead of server_argv shim The server_argv() shim merely wrapped command-line arguments, so call std::env::args() directly at each use site and drop the unused shim. --- crates/shirabe/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/shirabe/src/main.rs') diff --git a/crates/shirabe/src/main.rs b/crates/shirabe/src/main.rs index 5c9dd9b..8ba695f 100644 --- a/crates/shirabe/src/main.rs +++ b/crates/shirabe/src/main.rs @@ -2,7 +2,7 @@ use shirabe::console::Application; use shirabe::util::Platform; -use shirabe_php_shim::{realpath, server_argv}; +use shirabe_php_shim::realpath; fn main() { // TODO(phase-c): the full initialization process in composer/bin/composer should be ported @@ -10,7 +10,7 @@ fn main() { Platform::put_env( "COMPOSER_BINARY", - &realpath(&server_argv()[0]).unwrap_or_default(), + &realpath(&std::env::args().next().unwrap_or_default()).unwrap_or_default(), ); // run the command application -- cgit v1.3.1