这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Incorrect error code on exit #4

@codebudo

Description

@codebudo

When apigeetool -h is run it displays the help messages. Since no errors have occurred and the app behaved correctly, the exit status code should be 0. Unfortunately, it is 2. Help messages for the other valid commands have similar non-zero exit codes.

Using the apigeetool with other tools (e.g. Grunt) that check error status codes produces unwanted results. Grunt tasks stop because it thinks something went wrong.

You can check this with echo:

$ apigeetool -h
Usage: apigeetool <cmd> <options>
Valid commands:
  deployproxy:        Deploy an API proxy from a local directory
  deploynodeapp:      Deploy a NodeJS app from a local directory
  listdeployments:    List deployed APIs or apps
  undeploy:           Undeploy a proxy or app
$ echo $?
2

It's certainly a minor but, but inline documentation is very useful and it would be great to fully support it. Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions