mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-16 11:46:17 +00:00
add help file for base64
This commit is contained in:
parent
2df00344f7
commit
dedb969d75
2 changed files with 18 additions and 13 deletions
15
src/uu/base64/base64.md
Normal file
15
src/uu/base64/base64.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# base64
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
{} [OPTION]... [FILE]
|
||||||
|
|
||||||
|
## About
|
||||||
|
|
||||||
|
encode/decode data and print to standard output
|
||||||
|
With no FILE, or when FILE is -, read standard input.
|
||||||
|
|
||||||
|
The data are encoded as described for the base64 alphabet in RFC
|
||||||
|
3548. When decoding, the input may contain newlines in addition
|
||||||
|
to the bytes of the formal base64 alphabet. Use --ignore-garbage
|
||||||
|
to attempt to recover from any other non-alphabet bytes in the
|
||||||
|
encoded stream.
|
|
@ -9,22 +9,12 @@
|
||||||
use uu_base32::base_common;
|
use uu_base32::base_common;
|
||||||
pub use uu_base32::uu_app;
|
pub use uu_base32::uu_app;
|
||||||
|
|
||||||
use uucore::{encoding::Format, error::UResult};
|
use uucore::{encoding::Format, error::UResult, help_section};
|
||||||
|
|
||||||
use std::io::{stdin, Read};
|
use std::io::{stdin, Read};
|
||||||
|
|
||||||
static ABOUT: &str = "\
|
const ABOUT: &str = help_section!("about");
|
||||||
encode/decode data and print to standard output
|
const USAGE: &str = help_section!("usage");
|
||||||
With no FILE, or when FILE is -, read standard input.
|
|
||||||
|
|
||||||
The data are encoded as described for the base64 alphabet in RFC
|
|
||||||
3548. When decoding, the input may contain newlines in addition
|
|
||||||
to the bytes of the formal base64 alphabet. Use --ignore-garbage
|
|
||||||
to attempt to recover from any other non-alphabet bytes in the
|
|
||||||
encoded stream.
|
|
||||||
";
|
|
||||||
|
|
||||||
const USAGE: &str = "{0} [OPTION]... [FILE]";
|
|
||||||
|
|
||||||
#[uucore::main]
|
#[uucore::main]
|
||||||
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue