davetron5000/gli — Issue #63: does not store default_value for commands
Author: danielb2
Created: 2011-12-10 16:23:14+00:00
State: open

if I run `progname initconfig` on this code, the default value for `other` will not be stored for `command`

```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
```
$ ./test.rb help command
command [command options] value
command to show default values dont store for command flags

Command Options:
-o, --other=arg - command value (default: will not store in cfg)
```

show it not being stored in cfg file
```
cat /tmp/cfg.yml
---
:v: value shows in cfg file twice
:value: value shows in cfg file twice
commands:
:command: {}
```