imap-backup 9.3.0 → 9.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87355fbc67849a32cdb0def02245d0101198089a15e8fcffbeadcb717413af26
4
- data.tar.gz: 55c13492ab22718193472e76a5d79ee30c3d3ee444ca1240220c687939c07339
3
+ metadata.gz: 0f01e9469da5b4990bdcc90f5e019b0cf5e9cf06203f29980503edabdec4abb8
4
+ data.tar.gz: 93501685a083a9b3edc8f1bb606decf7bcac965773063eb9e59863f3afa43113
5
5
  SHA512:
6
- metadata.gz: a4583f55d69565cf81552a0ba295ba21983be0d2ad2d3a83f65e0d1c7970df6cd73ced117b625de04d858e7d71c39f386b020ce437e10fa6c9d7b734b13e3715
7
- data.tar.gz: a02472800916ad71c7f8129084bb1a2920624c0c87fc672bebb009990e21ecf1055d8d0a8d80b42481038f3694bab3ad32c4386006a108f2dd928553420c9606
6
+ metadata.gz: 494089b738a8ca9080c1057b4bdc5a8ebe8d2900e756fbd2c16445d856e3939da759bd8bc644585f8d6591055a79656b92a44b60cb0a522a87023d30f6b49ca9
7
+ data.tar.gz: fa3e100e307103808360797853953cfec677bbd6ee3b9b36330f2449ef065a5e128660154e6d3593a34652f6753a553bf4697e145c60a3e728645acb67477de3
@@ -22,6 +22,21 @@ module Imap::Backup
22
22
 
23
23
  default_task :backup
24
24
 
25
+ def self.start(*args)
26
+ # By default, commands like `imap-backup help foo bar`
27
+ # are handled by listing all `foo` methods, whereas the user
28
+ # probably wants the detailed help for the `bar` method.
29
+ # Move initial "help" argument to after any subcommand,
30
+ # so we get help for the requested subcommand method.
31
+ first_argument_is_help = ARGV[0] == "help"
32
+ second_argument_is_subcommand = subcommands.include?(ARGV[1])
33
+ if first_argument_is_help && second_argument_is_subcommand
34
+ help, subcommand = ARGV.shift(2)
35
+ ARGV.unshift(subcommand, help)
36
+ end
37
+ super
38
+ end
39
+
25
40
  def self.exit_on_failure?
26
41
  true
27
42
  end
@@ -3,7 +3,7 @@ module Imap; end
3
3
  module Imap::Backup
4
4
  MAJOR = 9
5
5
  MINOR = 3
6
- REVISION = 0
6
+ REVISION = 1
7
7
  PRE = nil
8
8
  VERSION = [MAJOR, MINOR, REVISION, PRE].compact.map(&:to_s).join(".")
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imap-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.3.0
4
+ version: 9.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Yates
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-23 00:00:00.000000000 Z
11
+ date: 2023-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline