Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a note to string escaping implementation

  • Loading branch information...
commit 6dd8ed1897d0ceea9ec9f432d0e92d92b3980664 1 parent c4e9458
@seejohnrun seejohnrun authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/argh/formatters/jcommander_formatter.rb
View
2  lib/argh/formatters/jcommander_formatter.rb
@@ -14,6 +14,8 @@ def process
private
+ # NOTE: Strings need to be escaped when they contain a single-quote,
+ # by breaking the quote, inserting a ' (escaped) and then re-opening
def escape(name, value)
case value
when NilClass, FalseClass then nil
Please sign in to comment.
Something went wrong with that request. Please try again.