Make tape default
This commit is contained in:
parent
3142c289a5
commit
07020b8e00
1 changed files with 6 additions and 2 deletions
|
@ -197,7 +197,7 @@ function Doctests(d: ShowScript, buffer: string): string[] {
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
const opts = minimist(process.argv.slice(2), {boolean: ['tape', 'ava', 'watch']})
|
const opts = minimist(process.argv.slice(2), {boolean: ['tape', 'ava', 'watch']})
|
||||||
const d = showScriptInstances[opts.tape == true ? 'tape' : 'ava']
|
const d = showScriptInstances[opts.ava == true ? 'ava' : 'tape']
|
||||||
const files = opts._
|
const files = opts._
|
||||||
if (files.length == 0) {
|
if (files.length == 0) {
|
||||||
console.error(
|
console.error(
|
||||||
|
@ -223,4 +223,8 @@ function main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we are checking the doctests of this very file we don't need to run main
|
// if we are checking the doctests of this very file we don't need to run main
|
||||||
~process.argv[1].indexOf('doctest') || main()
|
if (~process.argv[1].indexOf('.doctest.')) {
|
||||||
|
console.debug(`Not running main since argv[1] contains '.doctest.':`, process.argv)
|
||||||
|
} else {
|
||||||
|
main()
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue