From ce28ae5c02f1f2d30c549b92fb4a7220c761109b Mon Sep 17 00:00:00 2001 From: Alexandru-Constantin Atomei Date: Thu, 28 Dec 2023 17:06:58 +0200 Subject: [PATCH 1/5] Fixed more and test docs --- src/uu/more/more.md | 2 +- src/uu/test/test.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/uu/more/more.md b/src/uu/more/more.md index cb626060e..e63ca1a87 100644 --- a/src/uu/more/more.md +++ b/src/uu/more/more.md @@ -1,7 +1,7 @@ # more ``` -more [OPTIONS] ... +more [OPTIONS] FILE... ``` Display the contents of a text file diff --git a/src/uu/test/test.md b/src/uu/test/test.md index e67eb1824..b198c220b 100644 --- a/src/uu/test/test.md +++ b/src/uu/test/test.md @@ -2,10 +2,11 @@ ``` test EXPRESSION -test +[ [ EXPRESSION ] [ ] [ OPTION +] ``` Check file types and compare values. From e61318413e6cdf2c4c2c94be50870fdf1adc9866 Mon Sep 17 00:00:00 2001 From: Alexandru-Constantin Atomei Date: Fri, 29 Dec 2023 14:51:23 +0200 Subject: [PATCH 2/5] Added documentation for the vdir command. --- src/uu/vdir/vdir.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/uu/vdir/vdir.md diff --git a/src/uu/vdir/vdir.md b/src/uu/vdir/vdir.md new file mode 100644 index 000000000..b22953397 --- /dev/null +++ b/src/uu/vdir/vdir.md @@ -0,0 +1,10 @@ +# vdir + +``` +vdir [OPTION]... [FILE]... +``` + +List directory contents. +Ignore files and directories starting with a '.' by default + +Mandatory arguments to long options are mandatory for short options too. From 1e5244765dd48ba02715b22673e0aa6c271e2919 Mon Sep 17 00:00:00 2001 From: Alexandru-Constantin Atomei Date: Fri, 29 Dec 2023 15:07:55 +0200 Subject: [PATCH 3/5] Made one more modification to test usage string. --- src/uu/test/src/test.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/uu/test/src/test.rs b/src/uu/test/src/test.rs index a0d0f3395..9d3c2b290 100644 --- a/src/uu/test/src/test.rs +++ b/src/uu/test/src/test.rs @@ -29,10 +29,11 @@ const ABOUT: &str = help_about!("test.md"); // So, we use test or [ instead of {} so that the usage string is correct. const USAGE: &str = "\ test EXPRESSION -test +[ [ EXPRESSION ] [ ] -[ OPTION"; +[ OPTION +]"; // We use after_help so that this comes after the usage string (it would come before if we used about) const AFTER_HELP: &str = help_section!("after help", "test.md"); From d15981650a1298834284ea8269c6b51d5c32d3eb Mon Sep 17 00:00:00 2001 From: Alexandru-Constantin Atomei Date: Fri, 29 Dec 2023 15:35:23 +0200 Subject: [PATCH 4/5] Fixed one typo --- src/uu/vdir/vdir.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/vdir/vdir.md b/src/uu/vdir/vdir.md index b22953397..ca3e1c5ce 100644 --- a/src/uu/vdir/vdir.md +++ b/src/uu/vdir/vdir.md @@ -5,6 +5,6 @@ vdir [OPTION]... [FILE]... ``` List directory contents. -Ignore files and directories starting with a '.' by default +Ignore files and directories starting with a '.' by default. Mandatory arguments to long options are mandatory for short options too. From 138b11efbdc6c34144376ec3f92d6de5eddef634 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 30 Dec 2023 09:53:32 +0100 Subject: [PATCH 5/5] remove extra spaces --- src/uu/vdir/vdir.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/vdir/vdir.md b/src/uu/vdir/vdir.md index ca3e1c5ce..c7a0cae36 100644 --- a/src/uu/vdir/vdir.md +++ b/src/uu/vdir/vdir.md @@ -7,4 +7,4 @@ vdir [OPTION]... [FILE]... List directory contents. Ignore files and directories starting with a '.' by default. -Mandatory arguments to long options are mandatory for short options too. +Mandatory arguments to long options are mandatory for short options too.