Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(haul-cli): handle unknown args #759

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

jamesgeorge007
Copy link
Contributor

Summary

Leverage yargs API to handle unknown arguments.

Test plan

$ haul unknown

Commands:
  haul.js init          Generates necessary configuration files
  haul.js bundle        Builds the app bundle for packaging. Run with
                        `--platform` flag to specify the platform [ios|android].
  haul.js ram-bundle    Create ram-bundle
  haul.js reload        Sends reload request to all devices that enabled live
                        reload
  haul.js start         Starts a new webpack server
  haul.js multi-bundle  Create multiple bundles to be used in multi-bundle mode

Options:
  -h, --help                Show help                                  [boolean]
  --verbose                 Print all logs including debug messages.   [boolean]
  --output-file <filename>  Log all messages to a file.                 [string]
  --json                    When --output-file is set, log each message as a
                            JSON object.                               [boolean]
  -v, --version             Show version number                        [boolean]

Unknown argument: unknown

@zamotany zamotany merged commit fc123df into callstack:master Apr 13, 2021
@jamesgeorge007 jamesgeorge007 deleted the handle-unknown-args branch April 13, 2021 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants