File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -106,22 +106,22 @@ $config = [
106106$CliArgs = new CliArgs($config);
107107```
108108```
109- // Show help
109+ Show help
110110> some-script.php --help
111- // <?php if ($CliArgs->isFlagExists('help', 'h')) echo $CliArgs->getArg('help'); ?>
112-
113- // Show help only for param data
114- // > some-script.php --help data
115- // <?php if ($CliArgs->isFlagExists('help', 'h')) echo $CliArgs->getArg('help'); ?>
116-
117- // All the same:
118- // > some-script.php --data='{"foo":"bar"}' --user-id=42
119- // or
120- // > some-script.php --data '{"foo":"bar"}' --user-id 42
121- // or
122- // > some-script.php -d '{"foo":"bar"}' --user-id 42
123- // or
124- // > some-script.php -d '{"foo":"bar"}' -u 42
111+ <?php if ($CliArgs->isFlagExists('help', 'h')) echo $CliArgs->getArg('help'); ?>
112+
113+ Show help only for param data
114+ > some-script.php --help data
115+ <?php if ($CliArgs->isFlagExists('help', 'h')) echo $CliArgs->getArg('help'); ?>
116+
117+ All the same:
118+ > some-script.php --data='{"foo":"bar"}' --user-id=42
119+ or
120+ > some-script.php --data '{"foo":"bar"}' --user-id 42
121+ or
122+ > some-script.php -d '{"foo":"bar"}' --user-id 42
123+ or
124+ > some-script.php -d '{"foo":"bar"}' -u 42
125125
126126<?php
127127 print_r($CliArgs->getArg('data'));
You can’t perform that action at this time.
0 commit comments