Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Merge requests
  • !177

Fix exit code for usage with --help

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/bayandin/patch-1 into master Aug 15, 2014
  • Overview 7
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: bayandin

When I use buck with option --help it exits with non-zero code.

bayandin@mbp:~/repos/buck$ bin/buck --version
Not using buckd because watchman isn't installed.
buck version e2f2eec283d05ea117c983030a9f0b359127bb27

bayandin@mbp:~/repos/buck$ bin/buck --help
Not using buckd because watchman isn't installed.
buck build tool
usage:
  buck [options]
  buck command --help
  buck command [command-options]
available commands:
  audit       lists the inputs for the specified target
  build       builds the specified target
  cache       makes calls to the artifact cache
  clean       deletes any generated files
  install     builds and installs an APK
  project     generates project configuration files for an IDE
  quickstart  generates a default project directory
  run         runs a target as a command
  targets     prints the list of buildable targets
  test        builds and runs the tests for the specified target
  uninstall   uninstalls an APK
options:
 --help         : Shows this screen and exits.
 --version (-V) : Show version number.

bayandin@mbp:~/repos/buck$ echo $?
1

This PR fixes this unexpected behaviour.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/bayandin/patch-1