From f09627f7c5a2cd8593745211459a9fd2468bac88 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Mon, 14 May 2018 18:50:40 +0100 Subject: Add docopts --- src/tm.nim | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/tm.nim (limited to 'src/tm.nim') diff --git a/src/tm.nim b/src/tm.nim deleted file mode 100644 index 26c97f2..0000000 --- a/src/tm.nim +++ /dev/null @@ -1,18 +0,0 @@ -import os - -import lib - -const tmname {.strdefine.}: string = "" - -when tmname.len > 0: - const tmd = parse(slurp(tmname & ".tm")) - if paramCount() >= 1: - echo makeDTM(tmd, paramStr(1)).test(false) - else: - echo "please specify a single string argument" -else: - if paramCount() >= 2: - let tmd = parse(readFile(paramStr(1) & ".tm")) - echo makeDTM(tmd, paramStr(2)).test(true) - else: - echo "please specify a description and string input" -- cgit v1.2.1