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
Config params should be descriptive, and while shortening config to single letter flags is fun, it should be used with caution. Asking that the above invocation should fail instead of "working" isn't going too far. I argue that command line flags must be followed by a space in order to prevent the above scenario.
# ./test.rb -helpConfigliere::ParserError"Detected command line flag without a space! Oh noes!"
This doesn't seem too verbose and actually clears up parsing logic.
This is potentially dangerous. Given a file
test.rb
with the following code:Accidentally typing
-help
instead of--help
could lead to potentially disastrous outcomes.Config params should be descriptive, and while shortening config to single letter flags is fun, it should be used with caution. Asking that the above invocation should fail instead of "working" isn't going too far. I argue that command line flags must be followed by a space in order to prevent the above scenario.
This doesn't seem too verbose and actually clears up parsing logic.
The text was updated successfully, but these errors were encountered: