Skip to content

Commit b690a9a

Browse files
committed
struct Args: remove unneeded Debug derivation
1 parent 21e1ef1 commit b690a9a

Some content is hidden

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

75 files changed

+75
-76
lines changed

awk/src/main.rs

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

2525
/// awk - pattern scanning and processing language
26-
#[derive(Debug, Parser)]
26+
#[derive(Parser)]
2727
struct Args {
2828
/// Define the input field separator
2929
#[arg(short = 'F')]

calc/bc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use rustyline::{error::ReadlineError, DefaultEditor, Result};
2222
mod bc_util;
2323

2424
/// bc - arbitrary-precision arithmetic language
25-
#[derive(Debug, Parser)]
25+
#[derive(Parser)]
2626
#[command(author, version, about, long_about)]
2727
struct Args {
2828
#[arg(short = 'l')]

datetime/cal.rs

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

19-
#[derive(Debug, Parser)]
19+
#[derive(Parser)]
2020
#[command(version, about = gettext("cal - print a calendar"))]
2121
struct Args {
2222
#[arg(

datetime/date.rs

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

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

datetime/sleep.rs

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

1515
/// sleep - suspend execution for an interval
16-
#[derive(Parser, Debug)]
16+
#[derive(Parser)]
1717
#[command(author, version, about, long_about)]
1818
struct Args {
1919
/// Number of seconds to sleep

datetime/time.rs

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

19-
#[derive(Parser, Debug)]
19+
#[derive(Parser)]
2020
#[command(author, version, about, long_about = None)]
2121
struct Args {
2222
/// Write timing output to standard error in POSIX format

dev/ar.rs

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

158158
/// ar - create and maintain library archives
159-
#[derive(Parser, Debug)]
159+
#[derive(Parser)]
160160
#[command(author, version, about, long_about)]
161161
struct Args {
162162
#[command(subcommand)]

dev/nm.rs

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

3232
/// nm - write the name list of an object file
33-
#[derive(Parser, Debug)]
33+
#[derive(Parser)]
3434
#[command(author, version, about, long_about)]
3535
struct Args {
3636
/// Write the full pathname or library name of an object on each line.

file/cat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use std::io::{self, Read, Write};
1919
use std::path::PathBuf;
2020

2121
/// cat - concatenate and print files
22-
#[derive(Parser, Debug)]
22+
#[derive(Parser)]
2323
#[command(author, version, about, long_about)]
2424
struct Args {
2525
/// Disable output buffering (a no-op, for POSIX compat.)

file/cmp.rs

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

1717
/// cmp - compare two files
18-
#[derive(Parser, Debug)]
18+
#[derive(Parser)]
1919
#[command(author, version, about, long_about)]
2020
struct Args {
2121
/// Write the byte number (decimal) and the differing bytes (octal) for each difference.

0 commit comments

Comments
 (0)