-
Notifications
You must be signed in to change notification settings - Fork 66
roxy help missing a deployment command #176
Comments
There's a bug in the help code. It's a pain to fix. I suggest you do this: ml new -h That should return the help for new. --Paxton On Mon, Jan 20, 2014 at 1:51 PM, nizdobs [email protected] wrote:
|
Listing new in def self.usage in Help.rb should be no problem, nor is adding a def self.new to the same class. Ruby only complains if you call ml.rb with only 'new' as parameter. But it is possible to add '-h' as second param if there are no other params. That would at least integrate the usage documentation. I can imagine though that executing a 'new' command inside Ruby might be an issue (to actually perform the work for 'new' instead of just shoing help). A work-around for that could be to rename 'new' command param to something like 'doNew' in the first lines of ml.rb. Provided you would want to do the 'new' work inside Ruby; the shell script code seems to work just fine.. Interested in a pull request? |
On second thought, there is a good reason to not want the 'new' usage inside the Roxy Ruby code. If you put the ml-script in some bin directory (available in your path), and run it from a random directory, there will likely be no deploy/lib/ml.rb available. In that case, only ./ml new is appropriate. The ml-script is enough self-contained to download the Roxy files from git. |
fixed in dev |
When I'm at the root roxy directory and type ml -h I do not see "new" listed as a deployment command. This leads to some confusion when trying to create a new project.
The text was updated successfully, but these errors were encountered: