Skip to content

Commit 1480b73

Browse files
committed
Canonicalize clap command derivation
1 parent 6b8b29e commit 1480b73

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+79
-79
lines changed

calc/bc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ mod bc_util;
2323

2424
/// bc - arbitrary-precision arithmetic language
2525
#[derive(Parser)]
26-
#[command(author, version, about, long_about)]
26+
#[command(version, about)]
2727
struct Args {
2828
#[arg(short = 'l')]
2929
define_math_functions: bool,

datetime/date.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const DEF_TIMESTR: &str = "%a %b %e %H:%M:%S %Z %Y";
2020

2121
/// date - write the date and time
2222
#[derive(Parser)]
23-
#[command(author, version, about, long_about)]
23+
#[command(version, about)]
2424
struct Args {
2525
/// Perform operations as if the TZ env var was set to the string "UTC0"
2626
#[arg(short, long)]

datetime/sleep.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::{thread, time};
1414

1515
/// sleep - suspend execution for an interval
1616
#[derive(Parser)]
17-
#[command(author, version, about, long_about)]
17+
#[command(version, about)]
1818
struct Args {
1919
/// Number of seconds to sleep
2020
#[arg(value_parser = clap::value_parser!(u64).range(1..))]

datetime/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use gettextrs::{bind_textdomain_codeset, setlocale, textdomain, LocaleCategory};
1717
use plib::PROJECT_NAME;
1818

1919
#[derive(Parser)]
20-
#[command(author, version, about, long_about = None)]
20+
#[command(version, about)]
2121
struct Args {
2222
/// Write timing output to standard error in POSIX format
2323
#[arg(short, long)]

dev/ar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ enum Commands {
157157

158158
/// ar - create and maintain library archives
159159
#[derive(Parser)]
160-
#[command(author, version, about, long_about)]
160+
#[command(version, about)]
161161
struct Args {
162162
#[command(subcommand)]
163163
command: Commands,

dev/nm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ enum OutputType {
3131

3232
/// nm - write the name list of an object file
3333
#[derive(Parser)]
34-
#[command(author, version, about, long_about)]
34+
#[command(version, about)]
3535
struct Args {
3636
/// Write the full pathname or library name of an object on each line.
3737
#[arg(short = 'A', long = "print-file-name")]

dev/strings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct OutputOptions {
4141

4242
/// strings - find printable strings in files
4343
#[derive(Parser)]
44-
#[command(author, version, about, long_about)]
44+
#[command(version, about)]
4545
struct Args {
4646
#[command(flatten)]
4747
output_options: OutputOptions,

dev/strip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use plib::PROJECT_NAME;
2323

2424
/// strip - remove unnecessary information from strippable files
2525
#[derive(Parser)]
26-
#[command(author, version, about, long_about)]
26+
#[command(version, about)]
2727
struct Args {
2828
input_files: Vec<OsString>,
2929
}

file/cat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use std::path::PathBuf;
2020

2121
/// cat - concatenate and print files
2222
#[derive(Parser)]
23-
#[command(author, version, about, long_about)]
23+
#[command(version, about)]
2424
struct Args {
2525
/// Disable output buffering (a no-op, for POSIX compat.)
2626
#[arg(short, long, default_value_t = true)]

file/cmp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use std::process::ExitCode;
1616

1717
/// cmp - compare two files
1818
#[derive(Parser)]
19-
#[command(author, version, about, long_about)]
19+
#[command(version, about)]
2020
struct Args {
2121
/// Write the byte number (decimal) and the differing bytes (octal) for each difference.
2222
#[arg(short = 'l', long, group = "verbosity")]

0 commit comments

Comments
 (0)