Skip to content

Commit

Permalink
Update ntangle help
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalmodi committed Jun 10, 2019
1 parent b0d91a1 commit 305a7ff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions ntangle.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.6.5"
version = "0.6.6"
author = "Kaushal Modi"
description = "Command-line utility for Tangling of Org mode documents"
license = "MIT"
Expand All @@ -9,4 +9,4 @@ bin = @["ntangle"]

# Dependencies

requires "nim >= 0.19.6", "cligen >= 0.9.28"
requires "nim >= 0.19.6", "cligen >= 0.9.31"
19 changes: 12 additions & 7 deletions src/ntangle.nim
Original file line number Diff line number Diff line change
Expand Up @@ -551,12 +551,17 @@ when isMainModule:
result = @["--help"]

const
versionString = staticExec("git describe --tags HEAD")
version = staticExec("git describe --tags HEAD")
nimbleData = staticRead("../ntangle.nimble")
uri = "https://github.com/OrgTangle/ntangle"
myUsage = "\nNAME\n ntangle - ${doc}" &
"\nUSAGE\n ${command} ${args}" &
"\n\nOPTIONS\n$options" &
"\nURI\n " & uri &
"\n\nAUTHOR\n " & nimbleData.fromNimble("author") &
"\n\nVERSION\n " & version

# https://github.com/c-blake/cligen/blob/master/RELEASE-NOTES.md#version-0928
clCfg.version = versionString
clCfg.version = version

dispatch(ntangle,
usage = "\nNAME\n ntangle - $doc\n" &
"USAGE\n $command $args\n\n" &
"OPTIONS\n$options\n" &
"URL\n " & url & "\n")
dispatch(ntangle, usage=myUsage)

0 comments on commit 305a7ff

Please sign in to comment.