Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improved console usage messages

  • Loading branch information...
commit b4d54c29a3dfd25d6e4116819f99f00458ede105 1 parent 4893719
Matthew Weier O'Phinney weierophinney authored
Showing with 15 additions and 10 deletions.
  1. +1 −0  .gitignore
  2. +14 −10 Module.php
1  .gitignore
View
@@ -1,2 +1,3 @@
.vimproject
.*.swp
+test/log/
24 Module.php
View
@@ -89,19 +89,23 @@ public function getControllerConfig()
));
}
+ public function getConsoleBanner(Console $console)
+ {
+ return 'Phly Static Blog Generator';
+ }
+
public function getConsoleUsage(Console $console)
{
return array(
- 'blog compile [--all|-a] [--entries|-e] [--archive|-c] [--year|-y] [--month|-m] [--day|-d] [--tag|-t] [--author|-r]' => 'Compile blog:
- --all|-a: Execute all actions (default)
- --entries|-e: Compile entries
- --archive|-c: Compile paginated archive (and feed)
- --year|-y: Compile paginated entries by year
- --month|-m: Compile paginated entries by month
- --day|-d: Compile paginated entries by day
- --tag|-t: Compile paginated entries by tag (and feeds)
- --author|-r: Compile paginated entries by author (and feeds)
-',
+ 'blog compile [--all|-a] [--entries|-e] [--archive|-c] [--year|-y] [--month|-m] [--day|-d] [--tag|-t] [--author|-r]' => 'Compile blog',
+ array('--all|-a' , 'Execute all actions (default)'),
+ array('--entries|-e' , 'Compile entries'),
+ array('--archive|-c' , 'Compile paginated archive (and feed)'),
+ array('--year|-y' , 'Compile paginated entries by year'),
+ array('--month|-m' , 'Compile paginated entries by month'),
+ array('--day|-d' , 'Compile paginated entries by day'),
+ array('--tag|-t' , 'Compile paginated entries by tag (and feeds)'),
+ array('--author|-r' , 'Compile paginated entries by author (and feeds)'),
);
}
Please sign in to comment.
Something went wrong with that request. Please try again.