mirror of
https://github.com/denoland/deno.git
synced 2025-09-25 03:42:30 +00:00
Revert "feat(flags): script arguments come after '--'" (#3681)
Due to complaints about ergonomics and because it breaks shebang on
linux.
This reverts commit 2d5457df15
.
BREAKING CHANGE
This commit is contained in:
parent
3eab20ce42
commit
a4dde552de
14 changed files with 82 additions and 78 deletions
|
@ -14,7 +14,6 @@ async function startFileServer(): Promise<void> {
|
|||
"--allow-read",
|
||||
"--allow-net",
|
||||
"http/file_server.ts",
|
||||
"--",
|
||||
".",
|
||||
"--cors"
|
||||
],
|
||||
|
@ -123,7 +122,7 @@ test(async function servePermissionDenied(): Promise<void> {
|
|||
|
||||
test(async function printHelp(): Promise<void> {
|
||||
const helpProcess = Deno.run({
|
||||
args: [Deno.execPath(), "run", "http/file_server.ts", "--", "--help"],
|
||||
args: [Deno.execPath(), "run", "http/file_server.ts", "--help"],
|
||||
stdout: "piped"
|
||||
});
|
||||
const r = new TextProtoReader(new BufReader(helpProcess.stdout!));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue