mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
add help file for base32
This commit is contained in:
parent
5a9380616b
commit
2df00344f7
2 changed files with 19 additions and 13 deletions
16
src/uu/base32/base32.md
Normal file
16
src/uu/base32/base32.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# base32
|
||||
|
||||
## 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 base32 alphabet in RFC
|
||||
4648. When decoding, the input may contain newlines in addition
|
||||
to the bytes of the formal base32 alphabet. Use --ignore-garbage
|
||||
to attempt to recover from any other non-alphabet bytes in the
|
||||
encoded stream.
|
|
@ -8,22 +8,12 @@
|
|||
use std::io::{stdin, Read};
|
||||
|
||||
use clap::Command;
|
||||
use uucore::{encoding::Format, error::UResult};
|
||||
use uucore::{encoding::Format, error::UResult, help_section};
|
||||
|
||||
pub mod base_common;
|
||||
|
||||
static ABOUT: &str = "\
|
||||
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 base32 alphabet in RFC
|
||||
4648. When decoding, the input may contain newlines in addition
|
||||
to the bytes of the formal base32 alphabet. Use --ignore-garbage
|
||||
to attempt to recover from any other non-alphabet bytes in the
|
||||
encoded stream.
|
||||
";
|
||||
|
||||
const USAGE: &str = "{} [OPTION]... [FILE]";
|
||||
const ABOUT: &str = help_section!("about");
|
||||
const USAGE: &str = help_section!("usage");
|
||||
|
||||
#[uucore::main]
|
||||
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||
|
|
Loading…
Reference in a new issue