amplify-backend icon indicating copy to clipboard operation
amplify-backend copied to clipboard

backend CLI `help` command list is missing `--statement-max-depth` as an optional flag

Open chrisbonifacio opened this issue 1 year ago • 2 comments

Environment information

System:
  OS: macOS 14.4.1
  CPU: (12) arm64 Apple M2 Pro
  Memory: 177.14 MB / 32.00 GB
  Shell: /usr/local/bin/fish
Binaries:
  Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node
  Yarn: 1.22.21 - /usr/local/bin/yarn
  npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm
  pnpm: undefined - undefined
NPM Packages:
  @aws-amplify/backend: 1.0.2
  @aws-amplify/backend-cli: 1.0.3
  aws-amplify: 6.3.2
  aws-cdk: 2.137.0
  aws-cdk-lib: 2.137.0
  typescript: 5.4.3
AWS environment variables:
  AWS_STS_REGIONAL_ENDPOINTS = regional
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
  AWS_SDK_LOAD_CONFIG = 1
No CDK environment variables

Description

The backend CLI's help command output is missing --statement-max-depth as an optional flag on ampx generate graphql-client-code.

PR to add to docs: https://github.com/aws-amplify/docs/pull/7641

chrisbonifacio avatar May 22 '24 18:05 chrisbonifacio

Marking this as bug to expose the option on generate help command.

ykethan avatar May 22 '24 18:05 ykethan

it looks like quite a few of these options are hidden

josefaidt avatar May 23 '24 01:05 josefaidt

we can potentially group some of these options instead https://yargs.js.org/docs/#api-reference-groupkeys-groupname

josefaidt avatar May 23 '24 17:05 josefaidt

let's remove --all in favor of displaying all valid CLI options

josefaidt avatar May 28 '24 19:05 josefaidt