From 98486513b638a398d8a7a1b3a166c26a73566777 Mon Sep 17 00:00:00 2001 From: David Dollar Date: Wed, 30 Jun 2010 21:18:30 -0400 Subject: [PATCH] switch procfile option to -f --- lib/foreman/cli.rb | 4 ++-- man/foreman.1.ronn | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/foreman/cli.rb b/lib/foreman/cli.rb index 6478647..129fbb0 100644 --- a/lib/foreman/cli.rb +++ b/lib/foreman/cli.rb @@ -5,7 +5,7 @@ require "thor" class Foreman::CLI < Thor - class_option :procfile, :type => :string, :aliases => "-p", :desc => "Default: ./Procfile" + class_option :procfile, :type => :string, :aliases => "-f", :desc => "Default: ./Procfile" desc "start [PROCESS]", "Start the application, or a specific process" @@ -13,7 +13,7 @@ class Foreman::CLI < Thor def start(process=nil) check_procfile! - + if process engine.execute(process) elsif options[:screen] diff --git a/man/foreman.1.ronn b/man/foreman.1.ronn index e479c6a..728bb7b 100644 --- a/man/foreman.1.ronn +++ b/man/foreman.1.ronn @@ -58,7 +58,7 @@ The following options control how the application is run: These options control all modes of foreman's operation. - * `-p`, `--procfile` + * `-f`, `--procfile` Specify an alternate location for the application's Procfile. This file's containing directory will be assumed to be the root directory of the application.