@@ -46,6 +46,10 @@ class SelfUpdateCommand extends Command
4646 /**
4747 * Execute the command.
4848 *
49+ * @options
50+ * --check bool;check
51+ * --rollback bool;Rollback to prev version
52+ *
4953 * @param Input $input
5054 * @param Output $output
5155 */
@@ -57,13 +61,13 @@ protected function execute(Input $input, Output $output)
5761 /**
5862 * Check for ancilliary options
5963 */
60- if ($ input -> getOption ('rollback ' )) {
64+ if ($ this -> flags -> getOpt ('rollback ' )) {
6165 $ this ->rollback ();
6266
6367 return ;
6468 }
6569
66- if ($ input -> getOption ('check ' )) {
70+ if ($ this -> flags -> getOpt ('check ' )) {
6771 $ this ->printAvailableUpdates ();
6872
6973 return ;
@@ -72,25 +76,25 @@ protected function execute(Input $input, Output $output)
7276 /**
7377 * Update to any specified stability option
7478 */
75- if ($ input -> getOption ('dev ' )) {
79+ if ($ this -> flags -> getOpt ('dev ' )) {
7680 $ this ->updateToDevelopmentBuild ();
7781
7882 return ;
7983 }
8084
81- if ($ input -> getOption ('pre ' )) {
85+ if ($ this -> flags -> getOpt ('pre ' )) {
8286 $ this ->updateToPreReleaseBuild ();
8387
8488 return ;
8589 }
8690
87- if ($ input -> getOption ('stable ' )) {
91+ if ($ this -> flags -> getOpt ('stable ' )) {
8892 $ this ->updateToStableBuild ();
8993
9094 return ;
9195 }
9296
93- if ($ input -> getOption ('non-dev ' )) {
97+ if ($ this -> flags -> getOpt ('non-dev ' )) {
9498 $ this ->updateToMostRecentNonDevRemote ();
9599
96100 return ;
0 commit comments