From edb77726f1fbc249214f093d4a3dc0130c25d21c Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sat, 16 Oct 2021 02:25:04 -0700 Subject: [PATCH] Don't parse if there are no flags. --- README.md | 2 +- doc/api/index.html | 2 +- lib/dcat.dart | 106 +++++++++++++++++++++++++------------------- test/dcat_test.dart | 10 ++++- 4 files changed, 71 insertions(+), 49 deletions(-) diff --git a/README.md b/README.md index 0b2802b..9fa113c 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Parameter | Description | Type :--------------- |:----------------------------- | :------------------- paths | The file paths. | String[] output | The standard output or file. | [IOSink](https://api.dart.dev/dart-io/IOSink-class.html) -input | The standard input. | Stream\>? +input | The standard input. | [Stream](https://api.dart.dev/dart-io/Stdin-class.html) showEnds | Same as `-e` | bool numberNonBlank | Same as `-b` | bool showLineNumbers | Same as `-n` | bool diff --git a/doc/api/index.html b/doc/api/index.html index e26d37a..317b307 100644 --- a/doc/api/index.html +++ b/doc/api/index.html @@ -94,7 +94,7 @@ if (result.isFailure) { }

The cat function supports the following parameters:

-
ParameterDescriptionType
pathsThe file paths.String[]
outputThe standard output or file.IOSink
inputThe standard input.Stream<List<int>>?
showEndsSame as -ebool
numberNonBlankSame as -bbool
showLineNumbersSame as -nbool
showTabsSame as -Tbool
squeezeBlankSame as -sbool
showNonPrintingSame as -vbool
+
ParameterDescriptionType
pathsThe file paths.String[]
outputThe standard output or file.IOSink
inputThe standard input.Stream
showEndsSame as -ebool
numberNonBlankSame as -bbool
showLineNumbersSame as -nbool
showTabsSame as -Tbool
squeezeBlankSame as -sbool
showNonPrintingSame as -vbool