public
Description: Gitorious aims to provide a great way of doing distributed opensource code collaboration.
Homepage: http://gitorious.org/projects/gitorious
Clone URL: git://github.com/dysinger/gitorious.git
Search Repo:
Fixed git-daemon optparsing
Johan Sørensen (author)
Fri Apr 18 16:01:08 -0700 2008
commit  c5070c6a6ea3d148047fc6bc4b4ce1ce6fad43c0
tree    14194baa0e235769469fec9fd3b6effbe6070450
parent  37e1c41b4f693c787096e3fb7858f8b8c68c966b
...
1
 
...
1
2
0
@@ -1,2 +1,3 @@
0
 *.log
0
+*.pid
...
171
172
173
174
 
175
176
 
177
178
179
180
 
181
182
183
184
 
185
186
187
188
 
189
190
191
192
 
193
 
 
 
 
 
194
195
196
...
171
172
173
 
174
175
 
176
177
178
179
 
180
181
182
183
 
184
185
186
187
 
188
189
190
191
 
192
193
194
195
196
197
198
199
200
201
0
@@ -171,26 +171,31 @@
0
 }
0
 
0
 OptionParser.new do |opts|
0
- opts.banner = "Usage: #{$0} start|stop [options]"
0
+ opts.banner = "Usage: #{$0} [options]"
0
 
0
- opts.on("-p", "--port", Integer, "Port to listen on") do |o|
0
+ opts.on("-p", "--port=[port]", Integer, "Port to listen on", "Default: #{options[:port]}") do |o|
0
     options[:port] = o
0
   end
0
 
0
- opts.on("-h", "--host", "Host to listen on") do |o|
0
+ opts.on("-a", "--address=[host]", "Host to listen on", "Default: #{options[:host]}") do |o|
0
     options[:host] = o
0
   end
0
   
0
- opts.on("-l", "--logfile", "File to log to") do |o|
0
+ opts.on("-l", "--logfile=[file]", "File to log to", "Default: #{options[:logfile]}") do |o|
0
     options[:logfile] = o
0
   end
0
   
0
- opts.on("-l", "--logfile", "PID file to use (if daemonized)") do |o|
0
+ opts.on("-P", "--pidfile=[file]", "PID file to use (if daemonized)", "Default: #{options[:pidfile]}") do |o|
0
     options[:pidfile] = o
0
   end
0
   
0
- opts.on("-d", "--daemonize", "Daemonize or run in foreground (default)") do |o|
0
+ opts.on("-d", "--daemonize", "Daemonize or run in foreground", "Default: #{options[:daemonize]}") do |o|
0
     options[:daemonize] = o
0
+ end
0
+
0
+ opts.on_tail("-h", "--help", "Show this help message.") do
0
+ puts opts
0
+ exit
0
   end
0
   
0
   # opts.on("-e", "--environment", "RAILS_ENV to use") do |o|

Comments

    No one has commented yet.