srushti / goldberg

Goldberg is a lightweight CI server written in Ruby which worries about Bundler & RVM so that you don't have to.
Other
243 stars 29 forks source link

Better error message for incorrect number of arguments #116

Closed professor closed 11 years ago

professor commented 12 years ago

The directions very clearly say that the way to add a new project is the following: RAILS_ENV=production bin/goldberg add [--branch ] [--scm <git|svn>]

In my haste, I mistook as on optional. Here is what goldberg says

RAILS_ENV=production bin/goldberg add git://github.com/professor/cmusv.git There was problem adding the project.

In my opinion, I think there should be an error about missing the field.

RAILS_ENV=production bin/goldberg add git://github.com/professor/cmusv.git CMUSV Executing /usr/bin/env bash -c "git clone --depth 1 git://github.com/professor/cmusv.git /Users/tsedano/.goldberg/projects/CMUSV/code --branch master"

srushti commented 11 years ago

We now prompt the user for the missing arguments. 1eed860f2f017b93504e0849f5ddfe0d4517d9d7