318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
|
}
#####################################
# Startup stuff
#####################################
proc printUsage {} {
puts {Usage: eskil [options] [files...]
[options] See below.
[files...] Files to be compared
If no files are given, the program is started anyway and you can select
files from within. If only one file is given, the program looks for version
control of the file, and if found, runs in version control mode.
If directories are given, Eskil starts in directory diff.
To list all options matching a prefix, run 'eskil --query prefix'.
In tcsh use this line to get option completion:
complete eskil 'C/-/`eskil --query -`/'
Options:}
# Dump option info
foreach name [lsort -dictionary [dict keys $::eskil(opts,info)]] {
set outName $name
if {![dict exists $::eskil(opts,info) $name flag]} {
puts "Internal Error: BOHOHOHO $name"
break
|
|
|
>
>
>
>
>
>
>
>
>
>
>
|
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
|
}
#####################################
# Startup stuff
#####################################
proc printUsage {} {
set usageStr {Usage: eskil [options] [files...]
[options] See below.
[files...] Files to be compared
%v%
If no files are given, the program is started anyway and you can select
files from within. If only one file is given, the program looks for version
control of the file, and if found, runs in version control mode.
If directories are given, Eskil starts in directory diff.
To list all options matching a prefix, run 'eskil --query prefix'.
In tcsh use this line to get option completion:
complete eskil 'C/-/`eskil --query -`/'
Options:}
set versionStr ""
if {[file exists $::eskil(thisDir)/../version.txt]} {
set ch [open $::eskil(thisDir)/../version.txt]
set versionStr [string trim [read $ch 100]]
close $ch
set versionStr "$versionStr\n"
}
set usageStr [string map [list "%v%" $versionStr] $usageStr]
puts $usageStr
# Dump option info
foreach name [lsort -dictionary [dict keys $::eskil(opts,info)]] {
set outName $name
if {![dict exists $::eskil(opts,info) $name flag]} {
puts "Internal Error: BOHOHOHO $name"
break
|