diff options
Diffstat (limited to 'std/examples/cat.ts')
-rw-r--r-- | std/examples/cat.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/examples/cat.ts b/std/examples/cat.ts index 92d5ae397..7b7af3145 100644 --- a/std/examples/cat.ts +++ b/std/examples/cat.ts @@ -1,5 +1,5 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -const filenames = Deno.args.slice(1); +const filenames = Deno.args; for (const filename of filenames) { const file = await Deno.open(filename); await Deno.copy(Deno.stdout, file); |