From fc59c20daf59bfb3b6d6d5e4d24412be9d34fc67 Mon Sep 17 00:00:00 2001 From: Christopher Moore Date: Sun, 5 Jun 2016 07:13:05 -0700 Subject: [PATCH] use correct input option --- src/Support/Console/Commands/MutationMakeCommand.php | 2 +- src/Support/Console/Commands/TypeMakeCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Support/Console/Commands/MutationMakeCommand.php b/src/Support/Console/Commands/MutationMakeCommand.php index 5c58604a36..4768f3addb 100644 --- a/src/Support/Console/Commands/MutationMakeCommand.php +++ b/src/Support/Console/Commands/MutationMakeCommand.php @@ -61,7 +61,7 @@ protected function getDefaultNamespace($rootNamespace) protected function getOptions() { return [ - ['relay', null, InputOption::VALUE_OPTIONAL, 'Generate a Relay Mutation.'], + ['relay', null, InputOption::VALUE_NONE, 'Generate a Relay Mutation.'], ]; } } diff --git a/src/Support/Console/Commands/TypeMakeCommand.php b/src/Support/Console/Commands/TypeMakeCommand.php index 64bfe52b84..833045d1a0 100644 --- a/src/Support/Console/Commands/TypeMakeCommand.php +++ b/src/Support/Console/Commands/TypeMakeCommand.php @@ -81,7 +81,7 @@ protected function buildClass($name) protected function getOptions() { return [ - ['relay', null, InputOption::VALUE_OPTIONAL, 'Generate a Relay GraphQL type.'], + ['relay', null, InputOption::VALUE_NONE, 'Generate a Relay GraphQL type.'], ['model', null, InputOption::VALUE_OPTIONAL, 'Generate a Eloquent GraphQL type.'], ]; }