module Polydocopt
Extended Modules
Defined in:
polydocopt.crConstant Summary
-
COMMANDS =
{} of String => Command.class -
Command class registry
-
VERSION =
{{ (`shards version /srv/crystaldoc.info/github-ralsina-polydocopt-v0.2.0/src/..`).chomp.stringify }}
Class Method Summary
-
.levenshtein_distance(left : String, right : String) : Int32
Case-insensitive Levenshtein edit distance between two strings
-
.main(progname : String, args : Array(String), stdout : IO = STDOUT, stderr : IO = STDERR) : Int32
Main entry point.
Class Method Detail
def self.levenshtein_distance(left : String, right : String) : Int32
#
Case-insensitive Levenshtein edit distance between two strings
def self.main(progname : String, args : Array(String), stdout : IO = STDOUT, stderr : IO = STDERR) : Int32
#
Main entry point. Call this with the program name and ARGV.
Returns the exit code of the executed command, so a typical
program ends with: exit(Polydocopt.main("prog", ARGV))