Skip to content

Releases: davetron5000/gli

v2.13.1

12 May 13:26
Compare
Choose a tag to compare
  • Removed 1.9 Hash syntax in hopes this can work with 1.8 (see #214, thanks @annafw!)

Note that the CI build fails on 1.8 due to the tests using Faker, which requires i18n, which will not install on 1.8 any longer

v2.13.0

03 Mar 12:53
Compare
Choose a tag to compare
  • Add ability to disable "auto-guessing" the command names. e.g. if you have a command named list but execute my_app li, GLI will guess that you meant list. This can be problematic in some contexts and now can be disabled by using autocomplete false. See #200 (thanks @chrisarcand)

v2.12.3

21 Feb 17:09
Compare
Choose a tag to compare

v2.12.2

29 Sep 13:45
Compare
Choose a tag to compare
  • Fix crashing bug in the _doc command.
  • Dropped official support for 1.8.7. This version of Ruby is long-deprecated and while GLI should continue to work, the tools needed to develop GLI exhibit strange behavior that cause tests to fail. Rather than lock to older versions of the tools or waste time figuring out the problem, I've removed 1.8.7 from .travis.yml. I don't plan to introduce 1.9 or 2.0-only code to GLI, but am not going to spend time making sure it works on 1.8.7

v2.12.1

03 Sep 13:19
Compare
Choose a tag to compare
  • Since use of arguments :strict requires that subcommand_option_handling :normal also be set, GLI will blow up if that's not the case (as opposed to just not working).
  • Scaffolding now puts subcommand_option_handling :normal in the new app, as was originally intended, but not ever actually done for some reason o_O.
  • Improved documentation around arguments

v2.12.0

30 Jul 01:15
Compare
Choose a tag to compare
  • Support for "strict" argument parsing. That is, when you specify:

    arg :url

    GLI will check if that arg was given on the command line, and generate an error if not. Note that by default, existing apps will not get this feature without adding arguments :strict to their binfile. Newly-scaffolded apps will have this by default. Thanks @calestar (see #187)

v2.11.0

09 Jun 16:23
Compare
Choose a tag to compare

These features and fixes brought to you by the conscientious @calestar! Many thanks!

  • New Feature - document multiple arguments by repeated calls to arg

    # previously
    arg_name "src dest [second_dest]"
    
    # currently
    arg :src
    arg :dest
    arg :second_dest, :optional

    This doesn't enforce required v optional, but paves the way for it, and makes it easier to build up the arguments help string (see #184 and #180, and http://davetron5000.github.io/gli/rdoc/classes/GLI/DSL.html#method-i-arg)

  • Better help output when multiple required flags are omitted (see #177 and #182)

  • Getting help with GLI_DEBUG set no longer exits nonzero (getting help without GLI_DEBUG set previously exited zero, so this makes the behavior of getting help more consistent. See #183 and #181. Thanks @calestar!)

v2.10.0

22 Apr 12:46
Compare
Choose a tag to compare
  • New option, hide_commands_without_desc which, if set to true, will hide commands in the help output that have no desc (basically exposes what the hidden _doc command was already doing). Thanks @blackjid! See #170
  • Updated must_match documentation, see #163

v2.9.0

19 Jan 19:14
Compare
Choose a tag to compare
  • Synopsis can be shown in a more compact format for complex apps (See #160)
  • Full synopsis now shows flags and switches in the correct location on the command line (See #162)
  • Flags can now be made required and GLI will error if they are omitted (See #161)
  • Generated gemspec now uses git by default to get the file list (See #159, thanks to @JesseHerrick!)

Also, some documentation updates:

v2.8.1

19 Jan 19:07
Compare
Choose a tag to compare
  • Message printed when initconfig generates the config file (See #158, thanks to @calestar!)