From b4d2228b8e2562ce53dd44033a2efd13bfc56a2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20G=C5=82=C4=99bocki?= Date: Tue, 16 Apr 2019 12:09:06 +0200 Subject: [PATCH] Changed CLI name variable signature from optional to argument --- _posts/03-05-01-Command-Line-Interface.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_posts/03-05-01-Command-Line-Interface.md b/_posts/03-05-01-Command-Line-Interface.md index f03345d..a9c7de5 100644 --- a/_posts/03-05-01-Command-Line-Interface.md +++ b/_posts/03-05-01-Command-Line-Interface.md @@ -27,7 +27,7 @@ Let's write a simple "Hello, $name" CLI program. To try it out, create a file na {% highlight php %} .\n"; exit(1); } $name = $argv[1]; @@ -45,7 +45,7 @@ To run our script, above, from the command line: {% highlight console %} > php hello.php -Usage: php hello.php [name] +Usage: php hello.php > php hello.php world Hello, world {% endhighlight %}