diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-11 20:14:53 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-11 20:14:53 +0900 |
| commit | 8b7abe99d8c351d6f0e83aca9e12bbb8c3ea8182 (patch) | |
| tree | 80678d8c3babf71d8bb8265dac9016bb58c9eba1 /crates/shirabe/src/main.rs | |
| parent | 410858be0520a519531034fcd6c9331a30bc91d2 (diff) | |
| download | php-shirabe-8b7abe99d8c351d6f0e83aca9e12bbb8c3ea8182.tar.gz php-shirabe-8b7abe99d8c351d6f0e83aca9e12bbb8c3ea8182.tar.zst php-shirabe-8b7abe99d8c351d6f0e83aca9e12bbb8c3ea8182.zip | |
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.
Diffstat (limited to 'crates/shirabe/src/main.rs')
| -rw-r--r-- | crates/shirabe/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
