mirror of
https://github.com/lh3/minimap2.git
synced 2026-09-25 03:28:12 +08:00
Documented some k8 scripts; more coming
This commit is contained in:
Regular → Executable
+3
-1
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env k8
|
||||
|
||||
var getopt = function(args, ostr) {
|
||||
var oli; // option letter list index
|
||||
if (typeof(getopt.place) == 'undefined')
|
||||
@@ -44,7 +46,7 @@ while ((c = getopt(arguments, "Q:r:m:c")) != null) {
|
||||
else if (c == 'c') cap_short_mapq = true;
|
||||
}
|
||||
|
||||
var file = arguments.length == getopt.ind? new File() : new File(arguments[getopt.ind]);
|
||||
var file = arguments.length == getopt.ind || arguments[getopt.ind] == '-'? new File() : new File(arguments[getopt.ind]);
|
||||
var buf = new Bytes();
|
||||
|
||||
var tot = [], err = [];
|
||||
|
||||
Reference in New Issue
Block a user