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 1
1
# Package
2
2
3
- version = " 0.6.5 "
3
+ version = " 0.6.6 "
4
4
author = " Kaushal Modi"
5
5
description = " Command-line utility for Tangling of Org mode documents"
6
6
license = " MIT"
@@ -9,4 +9,4 @@ bin = @["ntangle"]
9
9
10
10
# Dependencies
11
11
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:
551
551
result = @ [" --help" ]
552
552
553
553
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
+
555
564
# https://github.com/c-blake/cligen/blob/master/RELEASE-NOTES.md#version-0928
556
- clCfg.version = versionString
565
+ clCfg.version = version
557
566
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