Skip to content

Commit

Permalink
update: move Flag classes to package toolkit/pflag
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Aug 24, 2021
1 parent e90ec31 commit 0cd1c34
Show file tree
Hide file tree
Showing 19 changed files with 6 additions and 1,905 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"require": {
"php": ">7.2.0",
"toolkit/cli-utils": "~1.0",
"toolkit/pflag": "~1.0",
"toolkit/stdlib": "~1.0",
"toolkit/sys-utils": "~1.0"
},
Expand Down
4 changes: 3 additions & 1 deletion src/Concern/NameAliasTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public function setAlias(string $name, $alias, bool $validate = false): void
$this->aliases[$aliasName] = $name;
} elseif ($validate) {
$oldName = $this->aliases[$aliasName];
throw new InvalidArgumentException("Alias '{$aliasName}' has been registered by '{$oldName}', cannot assign to the '{$name}'");
throw new InvalidArgumentException(
"Alias '$aliasName' has been registered by '$oldName', cannot assign to the '$name'"
);
}
}
}
Expand Down
48 changes: 0 additions & 48 deletions src/Contract/InputFlagInterface.php

This file was deleted.

15 changes: 0 additions & 15 deletions src/Exception/FlagException.php

This file was deleted.

67 changes: 0 additions & 67 deletions src/Flag/Argument.php

This file was deleted.

57 changes: 0 additions & 57 deletions src/Flag/Arguments.php

This file was deleted.

Loading

0 comments on commit 0cd1c34

Please sign in to comment.