Skip to content
Snippets Groups Projects
Verified Commit 38ac6a98 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

style: change name casing

parent bcb2de17
No related branches found
No related tags found
2 merge requests!5feat: remove compilation command,!4feat: remove compilation command
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
...@@ -11,8 +11,8 @@ if (!file_exists($autoloadPath)) { ...@@ -11,8 +11,8 @@ if (!file_exists($autoloadPath)) {
} }
require_once $autoloadPath; require_once $autoloadPath;
function displayHelp() { function display_help() {
echo "Usage: " . basename(__FILE__) . " <plugin_file> <cache_dir>\n"; echo "Usage: " . basename(__FILE__) . " <cache_dir>\n";
echo "Initialize a WordPress plugin by parsing the input file and generating output.\n"; echo "Initialize a WordPress plugin by parsing the input file and generating output.\n";
echo "\n"; echo "\n";
echo "Arguments:\n"; echo "Arguments:\n";
...@@ -36,13 +36,13 @@ function get_possible_plugin_files(): array { ...@@ -36,13 +36,13 @@ function get_possible_plugin_files(): array {
} }
if (in_array('--help', $argv) || in_array('-h', $argv)) { if (in_array('--help', $argv) || in_array('-h', $argv)) {
displayHelp(); display_help();
exit(0); exit(0);
} }
if ($argc < 2 || in_array('--help', $argv) || in_array('-h', $argv)) { if ($argc < 2 || in_array('--help', $argv) || in_array('-h', $argv)) {
echo "\033[31mError: Missing required arguments.\033[0m\n"; echo "\033[31mError: Missing required arguments.\033[0m\n";
displayHelp(); display_help();
exit(1); exit(1);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment