File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed
Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 11# Package
22
3- version = " 0.6.5 "
3+ version = " 0.6.6 "
44author = " Kaushal Modi"
55description = " Command-line utility for Tangling of Org mode documents"
66license = " MIT"
@@ -9,4 +9,4 @@ bin = @["ntangle"]
99
1010# Dependencies
1111
12- requires " nim >= 0.19.6" , " cligen >= 0.9.28 "
12+ requires " nim >= 0.19.6" , " cligen >= 0.9.31 "
Original file line number Diff line number Diff line change @@ -551,12 +551,17 @@ when isMainModule:
551551 result = @ [" --help" ]
552552
553553 const
554- versionString = staticExec (" git describe --tags HEAD" )
554+ version = staticExec (" git describe --tags HEAD" )
555+ nimbleData = staticRead (" ../ntangle.nimble" )
556+ uri = " https://github.com/OrgTangle/ntangle"
557+ myUsage = " \n NAME\n ntangle - ${doc}" &
558+ " \n USAGE\n ${command} ${args}" &
559+ " \n\n OPTIONS\n $options" &
560+ " \n URI\n " & uri &
561+ " \n\n AUTHOR\n " & nimbleData.fromNimble (" author" ) &
562+ " \n\n VERSION\n " & version
563+
555564 # https://github.com/c-blake/cligen/blob/master/RELEASE-NOTES.md#version-0928
556- clCfg.version = versionString
565+ clCfg.version = version
557566
558- dispatch (ntangle,
559- usage = " \n NAME\n ntangle - $doc\n " &
560- " USAGE\n $command $args\n\n " &
561- " OPTIONS\n $options\n " &
562- " URL\n " & url & " \n " )
567+ dispatch (ntangle, usage= myUsage)
You can’t perform that action at this time.
0 commit comments