Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Don't print help docs on error. #30

Closed
bryanhelmig opened this issue Feb 27, 2017 · 0 comments
Closed

Don't print help docs on error. #30

bryanhelmig opened this issue Feb 27, 2017 · 0 comments

Comments

@bryanhelmig
Copy link
Member

It obscures the error message:

$ zapier init
Initializes a new Zapier app in a directory.

Usage: `zapier init path`

Initializes a new Zapier app. If you specify a template, will download and install the app from that template.

After running this, you'll have a new example app in your directory. If you re-run this command on an existing directory it will leave existing files alone and not clobber them.

> Note: this doesn't register or deploy the app with Zapier - try zapier register "Example" and zapier push for that!

**Arguments**

* location [value] -- **required**,
* --template={minimal,resource,trigger,create,search,middleware,basic-auth,custom-auth,oauth2,session-auth,babel} -- _optional_, select a starting app template. Default is minimal

$ zapier init example-app --template=minimal
# Let's initialize your app!
#
#   Downloading zapier/zapier-platform-example-app-minimal starter app - done!
#   Copy /users/username/code/example-app/.gitignore - done!
#   Copy /users/username/code/example-app/index.js - done!
#   Copy /users/username/code/example-app/package.json - done!
#   Copy /users/username/code/example-app/test/index.js - done!
#
# Finished! You might need to npm install then try zapier test!

Errors running command `zapier init`:

!!!   Missing required positional argument 1/location

Probably better would be:

$ zapier init
Errors running command `zapier init`. Try `zapier help init` for more information.

!!!   Missing required positional argument 1/location
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants