From e3386ff15ca8119f82ec3b812e77e52d420f2bc3 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Tue, 19 Dec 2023 17:00:28 -0800 Subject: [PATCH] cleanup --- README.md | 13 +++++++------ test/readme_test.dart | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 796486d..76eb9f7 100644 --- a/README.md +++ b/README.md @@ -43,12 +43,13 @@ $ dhttpd --path build/web/ # Serves app at http://localhost:8080 ```console $ dhttpd --help --p, --port= The port to listen on. - (defaults to "8080") - --path= The path to serve. If not set, the current directory is used. - --host= The hostname to listen on. - (defaults to "localhost") --h, --help Displays the help. +-p, --port= The port to listen on. + (defaults to "8080") + --path= The path to serve. If not set, the current directory is used. + --headers= HTTP headers to apply to each response. header=value;header2=value + --host= The hostname to listen on. + (defaults to "localhost") +-h, --help Displays the help. ``` [path]: https://dart.dev/tools/pub/cmd/pub-global#running-a-script-from-your-path diff --git a/test/readme_test.dart b/test/readme_test.dart index 45a81c5..0b5f172 100644 --- a/test/readme_test.dart +++ b/test/readme_test.dart @@ -23,12 +23,13 @@ Future _readmeCheck(List args) async { expect(expected, r'''```console $ dhttpd --help --p, --port= The port to listen on. - (defaults to "8080") - --path= The path to serve. If not set, the current directory is used. - --host= The hostname to listen on. - (defaults to "localhost") --h, --help Displays the help. +-p, --port= The port to listen on. + (defaults to "8080") + --path= The path to serve. If not set, the current directory is used. + --headers= HTTP headers to apply to each response. header=value;header2=value + --host= The hostname to listen on. + (defaults to "localhost") +-h, --help Displays the help. ```'''); expect(readme.readAsStringSync(), contains(expected));