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.
Files changed (2) hide show
  1. data/gitadm +2 -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tsantos-gitadm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Santos