tools #31

Merged
Sieciech merged 9 commits from tools into dev 2021-08-28 19:28:21 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 4d84f4b542 - Show all commits

View File

@ -12,13 +12,13 @@ class PutEnv {
$argc = sizeof($argv); $argc = sizeof($argv);
print_r([$argc, $argv]); print_r([$argc, $argv]);
switch($argc) { switch($argc) {
case 3: case 4:
$this->file = $argv[1]; $this->file = $argv[1];
$this->key = $argv[2]; $this->key = $argv[2];
$this->value -> $argv[3]; $this->value -> $argv[3];
break; break;
case 2: case 3:
$this->file = $argv[1]; $this->file = $argv[1];
$this->key = $argv[2]; $this->key = $argv[2];
$this->value = fgets(STDIN); $this->value = fgets(STDIN);