X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/d73202d51bab546acbd6b3e5bea4d9d48aca6510..c40d4e6c6349b98c90e8bbb79b361e08e60c0dba:/src/shpub/Cli.php?ds=sidebyside diff --git a/src/shpub/Cli.php b/src/shpub/Cli.php index 12eeaed..eedbb10 100644 --- a/src/shpub/Cli.php +++ b/src/shpub/Cli.php @@ -41,7 +41,7 @@ class Cli break; } } catch (\Exception $e) { - echo 'Error: ' . $e->getMessage() . "\n"; + Log::err('Error: ' . $e->getMessage()); exit(1); } } @@ -160,9 +160,11 @@ class Cli ) ); + Command_Article::opts($optParser); Command_Note::opts($optParser); Command_Reply::opts($optParser); Command_Like::opts($optParser); + Command_Repost::opts($optParser); return $optParser; }