{"repo":"jekyll/mercenary","free":true,"listed":false,"github":"https://github.com/jekyll/mercenary","clone":"git clone https://github.com/jekyll/mercenary.git","description":"An easier way to build your command-line scripts in Ruby.","language":"Ruby","stars":159,"topics":["ruby","command-line"],"license":"MIT","category":"cli-tools","readme_excerpt":"Mercenary Lightweight and flexible library for writing command-line apps in Ruby. Installation Add this line to your application's Gemfile: gem 'mercenary' And then execute: $ bundle Or install it yourself as: $ gem install mercenary Note: Mercenary may not work with Ruby [OPTIONS]\" When a parent command exists, say supercommand , with syntax set as supercommand [OPTIONS] , the syntax of the command in question will be supercommand command name [OPTIONS] with both and [OPTIONS] stripped out. Any text between or between [ and ] will be stripped from parent command syntaxes. The purpose of this chaining is to reduce redundancy. #description Sets or gets the description of the command. Accepts one optional argument: - desc - (optional) the description to set for the command. If provided, will override any previous description set for the command. #default command Sets or gets the default subcommand of the command to execute in the event no subcommand is passed during execution. Accepts one optional argument: - command name - (optional) the Symbol name of the subcommand to be executed. Raises an ArgumentError if the subcommand doesn't exist. Overwrites previously-set default commands. #option Adds a new option to the command. Accepts many arguments: - config key - the configuration key that the value of this option maps to. - options - all the options, globbed, to be passed to OptionParser , namely the switches and the option description. Usually in the format \"-s\", \"--switch\", \"","default_branch":null,"files":null,"tree":[],"storefront":"/r/jekyll","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jekyll/mercenary/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}