Skip to content

Commit a8db0bc

Browse files
committed
Improve --help output
1 parent cf9faad commit a8db0bc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ntangle.nim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ proc doOrgTangle(file: string) =
512512
echo ""
513513

514514
proc ntangle(orgFilesOrDirs: seq[string]) =
515-
## Main
515+
## Command-line utility for Tangling of Org mode documents
516516
startTime = cpuTime()
517517
try:
518518
for f1 in orgFilesOrDirs:
@@ -536,7 +536,13 @@ proc ntangle(orgFilesOrDirs: seq[string]) =
536536

537537
when isMainModule:
538538
import cligen
539+
const
540+
url = "https://github.com/OrgTangle/ntangle"
539541
dispatchGen(ntangle
542+
, usage="\nNAME\n ntangle - $doc\n" &
543+
"USAGE\n $command $args\n\n" &
544+
"OPTIONS\n$options\n" &
545+
"URL\n " & url & "\n"
540546
, version = ("version", "0.6.1"))
541547
if paramCount()==0:
542548
quit(dispatch_ntangle(@["--help"]))

0 commit comments

Comments
 (0)