tsantos-gitadm 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/gitadm +2 -2
- metadata +1 -1
data/gitadm
CHANGED
@@ -183,7 +183,7 @@ elsif :create_repo == command
|
|
183
183
|
opts.banner = "Usage:"
|
184
184
|
user_opt(opts, options)
|
185
185
|
server_opt(opts, options)
|
186
|
-
opts.on('-r', '--path-to-repo REPO', 'The path to the repository on the server') do |path|
|
186
|
+
opts.on('-r', '--path-to-repo REPO', 'The path to the repository on the server. REQUIRED') do |path|
|
187
187
|
options.repo_path = path
|
188
188
|
end
|
189
189
|
opts.on('-d', '--use-dir', "Associates the current dir with the new repo and sends the files") do
|
@@ -203,7 +203,7 @@ elsif :create_repo == command
|
|
203
203
|
end
|
204
204
|
help_opt(opts)
|
205
205
|
end
|
206
|
-
if !defined? ARGS then puts opts; exit(1); end
|
206
|
+
if !defined? ARGS || !options.repo_path then puts opts; exit(1); end
|
207
207
|
opts.parse! ARGS
|
208
208
|
|
209
209
|
# Make the new dir and init it
|