uac 0.3.1 → 0.3.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/uac_sh.rb +4 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aad7a772016403207705fc7324e84b1aa032fdba
4
- data.tar.gz: c2aec387a48e70fcda12058f700f318941a409d7
3
+ metadata.gz: 8e5c21a9fe5d9b802aeae196ecebbe1b1c3badaa
4
+ data.tar.gz: 4c6b40a76a4d82de9ef7aa72c43541c6645a0be7
5
5
  SHA512:
6
- metadata.gz: 91c843c0044101c9de2e8737ae1ae16128ccb02335f7630997ca4695cfbe18e993a59feea76d74d6d465a65c621f0c6f86e1024a7b67e0c2d81307985ac3e555
7
- data.tar.gz: 2a2cc033903e61189b9a36f814767a0818ea85f9e2870e0516edae2c3a9635b5226f553ae5beacd8bf977a43f9cd317c336fa8bbf9813a7e3ad4d365b85fb877
6
+ metadata.gz: 41e71bc823b4559e15d0d632a68883bf2d030a2d3736c3704337fb2938c8096a2380d6889f2667fef11b9e29f03f9a1c6429ff830edc10321fed5e046a763b08
7
+ data.tar.gz: 579dc739bcd0de5edecab97d706110aadf99ade44ae55958cb9604763faafd9b5acef40fac9570a85bd64c204a5798f61a70364aedc11839a435b272cf27772d
data/lib/uac_sh.rb CHANGED
@@ -23,7 +23,7 @@ module UacSh
23
23
  opt.separator ""
24
24
  opt.separator "Options:"
25
25
 
26
- terminal_help = 'The given command will be executed in a terminal window, so cmd /c is added implictly. This is enabled by default.'
26
+ terminal_help = "The given command will be executed in a terminal window, so cmd /c is added implictly. Default is #{options[:terminal]}."
27
27
  opt.on('-t', '--[no-]terminal', terminal_help) do |o|
28
28
  options[:terminal] = o
29
29
  if not o
@@ -32,7 +32,7 @@ module UacSh
32
32
  end
33
33
  end
34
34
 
35
- pause_help = 'Pause after execution. This implies executing command line, so cmd.exe is the program to be executed. This option implies --terminal. This is enabled by default.'
35
+ pause_help = "Pause after execution. This implies executing command line, so cmd.exe is the program to be executed. This option implies --terminal. Default is #{options[:pause]}."
36
36
  opt.on('-p', '--[no-]pause', pause_help) do |o|
37
37
  options[:pause] = o
38
38
  if o
@@ -44,7 +44,8 @@ module UacSh
44
44
  options[:debug] = o
45
45
  end
46
46
 
47
- opt.on('--cd', '-c', 'Change to current directory. Default is true. This option implies --terminal.') do |o|
47
+ cd_help = "Change to current directory. Default is true. This option implies --terminal. Default is #{options[:cd]}."
48
+ opt.on('--cd', '-c', cd_help) do |o|
48
49
  options[:cd] = o
49
50
  if o
50
51
  options[:terminal] = o
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Winter Young