Merge pull request #5747 from Ato2207/fix_docs

Fix docs issues.
This commit is contained in:
Sylvestre Ledru
2023-12-30 19:28:54 +01:00
committed by GitHub
4 changed files with 16 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# more
```
more [OPTIONS] <FILE>...
more [OPTIONS] FILE...
```
Display the contents of a text file
+3 -2
View File
@@ -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");
+2 -1
View File
@@ -2,10 +2,11 @@
```
test EXPRESSION
test
[
[ EXPRESSION ]
[ ]
[ OPTION
]
```
Check file types and compare values.
+10
View File
@@ -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.