0.0
Low commit activity in last 3 years
No release in over a year
Extension to docopt for defining command line utilities with ease
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.7
 Project Readme

Super Docopt

Gem Version Build Status Maintainability


Create command line utilities with ease. Super Docopt is an extension that provides syntactic sugar to Docopt


Install

$ gem install super_docopt

Getting Started

# my_command_line.rb
require 'super_docopt'

class MyCommandLine < SuperDocopt::Base
  version '1.0.0'
  docopt 'docopt.txt'
  subcommands ['download', 'upload']

  def download
    puts "#download called with #{args}"
  end

  def upload
    puts "#upload called"
  end
end

MyCommandLine.execute ARGV
# docopt.txt
My Command Line

Usage:
  mock download [--force]
  mock upload
  mock (-h|--help|--version)

See the examples folder for more examples.