1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Merge pull request #4553 from piotrkwiecinski/false-move-strings-to-md-files

false: move help strings to markdown file
This commit is contained in:
Daniel Hofstetter 2023-03-20 08:22:13 +01:00 committed by GitHub
commit a484453bd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 7 deletions

11
src/uu/false/false.md Normal file
View file

@ -0,0 +1,11 @@
# false
```
false
```
Returns false, an unsuccessful exit status.
Immediately returns with the exit status `1`. When invoked with one of the recognized options it
will try to write the help or version text. Any IO error during this operation is diagnosed, yet
the program will also return `1`.

View file

@ -7,14 +7,9 @@
use clap::{Arg, ArgAction, Command};
use std::{ffi::OsString, io::Write};
use uucore::error::{set_exit_code, UResult};
use uucore::help_about;
static ABOUT: &str = "\
Returns false, an unsuccessful exit status.
Immediately returns with the exit status `1`. When invoked with one of the recognized options it
will try to write the help or version text. Any IO error during this operation is diagnosed, yet
the program will also return `1`.
";
const ABOUT: &str = help_about!("false.md");
#[uucore::main]
pub fn uumain(args: impl uucore::Args) -> UResult<()> {