expo-cli icon indicating copy to clipboard operation
expo-cli copied to clipboard

[minor] expo init: --name should be removed from --help

Open gregfenton opened this issue 2 years ago • 0 comments

Summary

Since expo init --name is deprecated and using it simply leads to an error message, mention of it should be removed from the --help message.

Environment

expo-env-info 1.0.3 environment info:
    System:
      OS: macOS 12.3.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
      npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
      Watchman: 2022.03.21.00 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.11.2 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5
      Android SDK:
        API Levels: 28, 29, 30
        Build Tools: 29.0.2, 31.0.0
        System Images: android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
        Android NDK: 23.1.7779620
    IDEs:
      Android Studio: 2020.3 AI-203.7717.56.2031.7784292
      Xcode: 13.3.1/13E500a - /usr/bin/xcodebuild
    npmGlobalPackages:
      eas-cli: 0.52.0
      expo-cli: 5.4.3
    Expo Workflow: managed

Please specify your device/emulator/simulator platform, model and version

MacOS

Error output

No response

Reproducible demo or steps to reproduce from a blank project

➜  expo init --help

  Usage: init|i [name] [options]

  Create a new Expo project

  Options:

    -t, --template [name]  Specify which template to use. Valid options are "blank", "tabs", "bare-minimum" or a package on npm (e.g. "expo-template-bare-minimum") that includes an Expo project template.
    --npm                  Use npm to install dependencies. (default when Yarn is not installed)
    --no-install           Skip installing npm packages or CocoaPods.
    --name <name>          Deprecated: Use expo init [name] instead.
    --yes                  Use default options. Same as "expo init . --template blank
    --yarn                 Use Yarn to install dependencies. (default when Yarn is installed)
    -h, --help             output usage information


➜  expo init -t blank --npm --name fred --yes
Deprecated: Use expo init [name] instead of --name [name].

gregfenton avatar May 07 '22 16:05 gregfenton