tsantos-gitadm 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|