This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require 'forwardable' | |
require 'ostruct' | |
require 'optparse' | |
# This class extends OptionParser to handle git style subcommands. Users of | |
# this class create a OptionParser::Subcommand object, set up the options using | |
# OptionParser methods, and then pass a class to OptionParser::Subcommand#run. | |
# Command line options before the first argument are passed as keyword |