Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • B blaupload-search-phil
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Blatech
  • blaupload-search-phil
  • Merge requests
  • !2

Add options to display the version and help message

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Joe Robinson requested to merge help-version-args into master Dec 07, 2015
  • Overview 1
  • Commits 13
  • Changes

It's nice to have a version output from -v and --version so we can check that we're running the latest code in IRC.

It's also nice to have a help option so people know how to use it, particularly since the #2 syntax for page numbers is new and undocumented.

I also added the command name (eg blaup) to the config so that it shows the correct thing in the help output. I had to ommit the ! from the start as if I used that, it just printed 1 for $config["command"] (I guess this is php interpreting !blaup as a boolean?)

Also added a new line to the end of the output for tidiness in a terminal, and cleaned up some unnecessary whitespace

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: help-version-args