TODO in shellopts-0.9.7 vs TODO in shellopts-1.0.0
- old
+ new
@@ -1,7 +1,17 @@
TODO
+ o Also allow assignment to usage string for ShellOpts::ShellOpts objects
+ o Create a ShellOpts.args method? It would be useful when processing commands:
+ case opt
+ when "command"
+ call_command_method(ShellOpts.args[1], ShellOpts.args[2])
+ end
+ ShellOpts.args would be a shorthand for ShellOpts.shellopts.args
+ Another option would be to create an argument-processing method:
+ shellopts.argv(2) -> call error if not exactly two arguments else return elements
+
o Check on return value from #process block to see if all options was handled:
case opt
when '-v'; verbose = true # Return value 'true' is ok
# Unhandled option means return value is nil
end
@@ -9,10 +19,10 @@
o Add a option flag for solitary options (--help)
o Make a #to_yaml
o Make an official dump method for debug
o Make a note that all options are processed at once and not as-you-go
o Test that arguments with spaces work
- o Long version usage strings
+ o Long version usage strings (major release)
o Doc: Example of processing of sub-commands and sub-sub-commands
+ More tests
+ More doc
+ Implement value-name-before-flags rule