William Morgan [Wed, 15 Aug 2012 06:04:35 +0000 (23:04 -0700)]
more documentation fixups
William Morgan [Wed, 15 Aug 2012 04:42:04 +0000 (21:42 -0700)]
bump to 2.0
William Morgan [Wed, 15 Aug 2012 04:40:08 +0000 (21:40 -0700)]
fix rake test task
William Morgan [Wed, 15 Aug 2012 04:39:58 +0000 (21:39 -0700)]
misc code cleanups
William Morgan [Sun, 12 Aug 2012 22:11:14 +0000 (15:11 -0700)]
change behavior for boolean flags
With this change, specifying --x on the commandline sets the value of
option :x to true. Specifying --no-x sets the value of option :x to
false. Not specifying either on the commandline sets the value of option
:x to its default.
(Previously, using --x would set the value of :x to the opposite of its
default value, and not specifying it would set :x to the default value,
and using --no-x would result in an error.)
There is one special case to this, which is that an option called :no_x
gets the inverted behavior of what the option :x would have.
Specifically, specifying --no-x on the commandline will set the value of
:no_x to true, specifying --x will set the value of :no_x to false, and
not specifying either will set the value of :no_x to its default.
William Morgan [Sat, 11 Aug 2012 23:06:37 +0000 (16:06 -0700)]
random documentation tweaks
William Morgan [Fri, 18 May 2012 04:14:06 +0000 (21:14 -0700)]
fix broken example on webpage
William Morgan [Mon, 23 Apr 2012 23:22:26 +0000 (16:22 -0700)]
for flags that default to true, display --no-X instead of --X
Continue to accept --X as well as --no-X.
William Morgan [Mon, 23 Apr 2012 23:08:31 +0000 (16:08 -0700)]
remove warnings during test time
William Morgan [Mon, 23 Apr 2012 23:08:18 +0000 (16:08 -0700)]
fix warning; thanks to Petty E. Metzger
William Morgan [Mon, 23 Apr 2012 23:07:34 +0000 (16:07 -0700)]
fix Rakefile to 1.9 compatibility
William Morgan [Mon, 28 Jun 2010 19:04:16 +0000 (15:04 -0400)]
fix w_s_e_h example, thanks to 'jon.forums'
William Morgan [Tue, 6 Apr 2010 15:52:58 +0000 (11:52 -0400)]
bump to 1.16.2
William Morgan [Tue, 6 Apr 2010 15:52:45 +0000 (11:52 -0400)]
add unit test for Trollop::die bug
William Morgan [Tue, 6 Apr 2010 15:19:22 +0000 (11:19 -0400)]
another bugfix in Trollop::options
This time, with unit tests!
William Morgan [Tue, 6 Apr 2010 00:29:57 +0000 (20:29 -0400)]
update release-script.txt
William Morgan [Tue, 6 Apr 2010 00:23:46 +0000 (20:23 -0400)]
bump to 1.16.1
William Morgan [Tue, 6 Apr 2010 00:22:34 +0000 (20:22 -0400)]
tweak README so that it looks better with darkfish
William Morgan [Tue, 6 Apr 2010 00:13:46 +0000 (20:13 -0400)]
refactor Trollop::die into Trollop::Parser#die and fix a bug
Trollop::die was depending on a magic @p variable to know which parser
to produce an error message for, which was removed in the last release.
Re-add this variable with a better name, improve the error handling, and
have the actual meat of the method be Parser#die
William Morgan [Thu, 1 Apr 2010 19:32:53 +0000 (15:32 -0400)]
bump to 1.16
William Morgan [Thu, 1 Apr 2010 20:43:57 +0000 (16:43 -0400)]
update release-script to gemcutter world
William Morgan [Thu, 1 Apr 2010 20:40:13 +0000 (16:40 -0400)]
update index.html with 1.16 documentation and contributors
William Morgan [Thu, 1 Apr 2010 20:39:58 +0000 (16:39 -0400)]
update History for 1.16 release
William Morgan [Thu, 1 Apr 2010 19:30:15 +0000 (15:30 -0400)]
drop hoe and get with new gem creation
Finally!
William Morgan [Thu, 1 Apr 2010 18:41:55 +0000 (14:41 -0400)]
add Trollop::with_standard_exception_handling method
Refactors the "standard" exception-handling logic into this method, so
that people who want specialized logic with Parser#parse can still make
use of it.
William Morgan [Thu, 1 Apr 2010 18:24:49 +0000 (14:24 -0400)]
modify #parse argument array in place
This was the effective behavior of Trollop::options anyways, and
this makes it easier to implement variants of that method.
Will Fitzgerald [Wed, 31 Mar 2010 17:48:59 +0000 (13:48 -0400)]
handle scientific notation
The float option doesn't (yet) handle scientific notation, but it
could with this diff from the current Git repo. It adds an optional
part to the FLOAT_RE, and a test at the end.
William Morgan [Thu, 1 Apr 2010 19:33:09 +0000 (15:33 -0400)]
add .gitignore
William Morgan [Sun, 3 Jan 2010 12:37:34 +0000 (07:37 -0500)]
update license in trollop.rb to match the license terms in README.txt
William Morgan [Tue, 8 Dec 2009 14:40:35 +0000 (06:40 -0800)]
minor: required option error message was ugly
It should use the real option name, not the ruby symbol.
William Morgan [Wed, 30 Sep 2009 19:15:05 +0000 (15:15 -0400)]
update URL in README.txt
William Morgan [Wed, 30 Sep 2009 18:56:54 +0000 (14:56 -0400)]
fix broken html on webpage
William Morgan [Wed, 30 Sep 2009 18:53:22 +0000 (14:53 -0400)]
bump to 1.15
William Morgan [Sun, 27 Sep 2009 17:49:08 +0000 (13:49 -0400)]
minor README.txt tweaks
William Morgan [Sun, 27 Sep 2009 17:39:51 +0000 (13:39 -0400)]
don't raise when out of short options
William Morgan [Fri, 19 Jun 2009 14:35:03 +0000 (10:35 -0400)]
bump to 1.14
William Morgan [Fri, 19 Jun 2009 14:34:40 +0000 (10:34 -0400)]
update changelog for 1.14
William Morgan [Fri, 19 Jun 2009 14:32:18 +0000 (10:32 -0400)]
make :multi arguments default to [], not nil
William Morgan [Fri, 19 Jun 2009 14:28:29 +0000 (10:28 -0400)]
improve a few comments and error output
William Morgan [Wed, 3 Jun 2009 13:33:40 +0000 (09:33 -0400)]
update webpage and FAQ
Erik Ostrom [Thu, 11 Dec 2008 07:14:14 +0000 (23:14 -0800)]
Added :date option type.
Parses dates with Date.parse, or Chronic if it's available.
William Morgan [Mon, 23 Mar 2009 13:58:15 +0000 (09:58 -0400)]
unshadow a variable
Apparently this generates a warning in Ruby 1.9.1. No change in behavior
though.
Thanks to Tuomas Kareinen <kareinen@iki.fi>
William Morgan [Mon, 16 Mar 2009 17:53:23 +0000 (13:53 -0400)]
bump to 1.13
William Morgan [Thu, 26 Feb 2009 21:50:47 +0000 (16:50 -0500)]
fix parsing of arg=<value with spaces>
Thanks to rogerpack2005 for pointing this out.
William Morgan [Fri, 30 Jan 2009 14:50:09 +0000 (06:50 -0800)]
minor README tweaks
William Morgan [Fri, 30 Jan 2009 14:45:15 +0000 (06:45 -0800)]
bump to 1.12
William Morgan [Fri, 30 Jan 2009 14:41:44 +0000 (06:41 -0800)]
move internal methods to bottom & mark private
William Morgan [Fri, 30 Jan 2009 14:36:19 +0000 (06:36 -0800)]
resolve default shorts AFTER user shorts
William Morgan [Fri, 30 Jan 2009 13:50:48 +0000 (05:50 -0800)]
add some unit tests for given keys
William Morgan [Fri, 30 Jan 2009 13:47:30 +0000 (05:47 -0800)]
update unit tests to work with _given keys
William Morgan [Fri, 30 Jan 2009 03:01:35 +0000 (19:01 -0800)]
bump to 1.11
William Morgan [Fri, 30 Jan 2009 02:34:40 +0000 (18:34 -0800)]
set "<opt>_given" for each opt on the commandline
For every option <opt> given on the commanline, in the output hash of
Parser#parse (and thus Trollop.options), in addition to setting
<opt> to the value given, set <opt>_given to true. This is useful if you need
to know which arguments were actually specified on the commandline, e.g. for
situations where arguments can override other arguments when given.
William Morgan [Thu, 23 Oct 2008 19:23:08 +0000 (12:23 -0700)]
add blog link to index.html
William Morgan [Thu, 23 Oct 2008 18:48:17 +0000 (11:48 -0700)]
add links to README
William Morgan [Thu, 23 Oct 2008 18:24:02 +0000 (11:24 -0700)]
fuck you rdoc, and fuck you rake
William Morgan [Thu, 23 Oct 2008 16:12:56 +0000 (09:12 -0700)]
bump to 1.10.2
William Morgan [Thu, 23 Oct 2008 16:10:11 +0000 (09:10 -0700)]
Revert "try and run 'stty size' to determine screen width"
This reverts commit
8dfa0de45bfcffc10eedf291b4c14426e3cb83d4.
William Morgan [Thu, 23 Oct 2008 06:06:47 +0000 (23:06 -0700)]
prettify default in help screen for arrays and IOs
William Morgan [Thu, 23 Oct 2008 06:06:26 +0000 (23:06 -0700)]
bugfix for :multi arguments and array defaults
William Morgan [Thu, 23 Oct 2008 05:40:34 +0000 (22:40 -0700)]
bah, minor Rakefile bugfix
William Morgan [Thu, 23 Oct 2008 05:36:30 +0000 (22:36 -0700)]
update release script
William Morgan [Thu, 23 Oct 2008 05:35:31 +0000 (22:35 -0700)]
bump to 1.10.1
William Morgan [Thu, 23 Oct 2008 05:35:05 +0000 (22:35 -0700)]
various rakefile tweaks
William Morgan [Thu, 23 Oct 2008 05:10:26 +0000 (22:10 -0700)]
fix up ambiguous multi-value vs multi-occurrence with default case
William Morgan [Thu, 23 Oct 2008 03:08:33 +0000 (20:08 -0700)]
more documentation improvements
William Morgan [Thu, 23 Oct 2008 03:07:45 +0000 (20:07 -0700)]
webpage source code bugfix
William Morgan [Thu, 23 Oct 2008 03:07:28 +0000 (20:07 -0700)]
fix up rdoc documentation generation
William Morgan [Thu, 23 Oct 2008 02:14:39 +0000 (19:14 -0700)]
comment out bad unit test that requires network access (will mock later)
William Morgan [Thu, 23 Oct 2008 01:53:15 +0000 (18:53 -0700)]
options return value now accepts method calls as well as hash keys (like OpenStruct)
William Morgan [Wed, 22 Oct 2008 01:43:32 +0000 (18:43 -0700)]
whoops; :io objects not generating right in help output
William Morgan [Tue, 21 Oct 2008 23:55:20 +0000 (16:55 -0700)]
bump version to 1.10
William Morgan [Wed, 22 Oct 2008 00:26:28 +0000 (17:26 -0700)]
add :io type for readonly files, urls, and stdin
William Morgan [Tue, 21 Oct 2008 23:54:18 +0000 (16:54 -0700)]
update rdoc documentation
William Morgan [Tue, 21 Oct 2008 23:22:29 +0000 (16:22 -0700)]
try and run 'stty size' to determine screen width
William Morgan [Tue, 21 Oct 2008 23:13:36 +0000 (16:13 -0700)]
lots of documentation updates in index.html
William Morgan [Tue, 21 Oct 2008 22:15:33 +0000 (15:15 -0700)]
remove documentation from README.txt
William Morgan [Tue, 21 Oct 2008 22:13:40 +0000 (15:13 -0700)]
remove outdated FAQ entry
William Morgan [Wed, 20 Aug 2008 16:34:04 +0000 (09:34 -0700)]
bump to 1.9
William Morgan [Wed, 20 Aug 2008 16:28:05 +0000 (09:28 -0700)]
update gem description to match README.txt
William Morgan [Wed, 20 Aug 2008 16:27:43 +0000 (09:27 -0700)]
add release script
Tuomas Kareinen [Wed, 30 Jul 2008 22:15:19 +0000 (01:15 +0300)]
add support for multiple options and multiple parameters
Additional features:
- an option can be given multiple times
- an option supports multiple parameters
Ohad Lutzky [Sun, 3 Aug 2008 23:54:09 +0000 (02:54 +0300)]
test for alternate args source
Ohad Lutzky [Sun, 3 Aug 2008 21:53:25 +0000 (00:53 +0300)]
allow different source of args for options (rather than ARGV)
Ohad Lutzky [Sun, 3 Aug 2008 21:47:58 +0000 (00:47 +0300)]
repair stop_on_unknown, add units tests
William Morgan [Sun, 3 Aug 2008 16:30:06 +0000 (09:30 -0700)]
Merge commit 'lutzky/master'
William Morgan [Thu, 31 Jul 2008 17:28:10 +0000 (10:28 -0700)]
add a pointer to lib/trollop.rb directly from the webpage
William Morgan [Thu, 31 Jul 2008 16:52:29 +0000 (09:52 -0700)]
add a nasty list of reasons to use trollop to the webpage
Ohad Lutzky [Thu, 31 Jul 2008 07:02:40 +0000 (10:02 +0300)]
implement stop_on_unknown
Imported from ditz
William Morgan [Wed, 30 Jul 2008 21:26:19 +0000 (14:26 -0700)]
colorize html
William Morgan [Wed, 30 Jul 2008 21:17:24 +0000 (14:17 -0700)]
point webpage to the new git repo
William Morgan [Wed, 25 Jun 2008 21:43:43 +0000 (21:43 +0000)]
bump to 1.8.2
William Morgan [Wed, 25 Jun 2008 21:42:48 +0000 (21:42 +0000)]
another bugfix: conflicts and depends error messages were broken
William Morgan [Tue, 24 Jun 2008 23:09:20 +0000 (23:09 +0000)]
scp -> rsync
William Morgan [Tue, 24 Jun 2008 22:54:48 +0000 (22:54 +0000)]
bump version to 1.8.1
William Morgan [Tue, 24 Jun 2008 22:54:11 +0000 (22:54 +0000)]
make documentation aggressive
William Morgan [Tue, 24 Jun 2008 22:12:02 +0000 (22:12 +0000)]
bugfix: short option autocreation tries (and dies on) dashes
William Morgan [Tue, 17 Jun 2008 04:40:59 +0000 (04:40 +0000)]
Bump version to 1.8.
William Morgan [Tue, 17 Jun 2008 04:39:35 +0000 (04:39 +0000)]
add sub-command support via Parser#stop_on
William Morgan [Wed, 16 Jan 2008 18:44:42 +0000 (18:44 +0000)]
mark as 1.7.2
William Morgan [Wed, 16 Jan 2008 18:39:56 +0000 (18:39 +0000)]
ruby 1.9-ify