Skip to content

Instantly share code, notes, and snippets.

View bobot's full-sized avatar

François Bobot bobot

  • CEA LIST
  • Orsay, France
View GitHub Profile
@bobot
bobot / ocompl.ml
Created April 5, 2014 08:30
Automatic generation of zsh completion from an extended Arg description
(* thx example for tagpix.pl *)
open Printf
let trim s =
let len = String.length s in
let rec aux = function
| n when n = len -> ""
| n ->
if s.[n] <> ' '