You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if I run progname initconfig the value for flag :value is stored twice
#!/usr/bin/env rubyrequire'gli'includeGLIconfig_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:commanddo |c|
c.desc'command value'c.default_value'will not store in cfg'c.flag[:o,:other]endexitrun(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: {}
The text was updated successfully, but these errors were encountered:
using version
1.4
if I run
progname initconfig
the value for flag:value
is stored twiceshow help output that default value is set correctly
show it being stored twice in cfg file. once for
:v:
and once for:value:
The text was updated successfully, but these errors were encountered: