davetron5000/gli — Issue #64: store flag value twice in command file
Author: danielb2
Created: 2011-12-10 16:26:29+00:00
State: open

using version `1.4`

if I run `progname initconfig` the value for flag `:value` is stored twice

```ruby
#!/usr/bin/env ruby
require 'gli'
include GLI

config_file '/tmp/cfg.yml'

desc 'specify a value to use.'
default_value 'value shows in cfg file twice'
flag [:v,:value]
arg_name 'value'

desc 'command to show default values dont store for command flags'
command :command do |c|
c.desc 'command value'
c.default_value 'will not store in cfg'
c.flag [:o,:other]
end
exit run(ARGV)
```

show help output that default value is set correctly

show it being stored twice in cfg file. once for `:v:` and once for `:value:`

```
cat /tmp/cfg.yml
---
:v: value shows in cfg file twice
:value: value shows in cfg file twice
commands:
:command: {}
```