Skip to content

Commit ccbd663

Browse files
MahadMuhammadCohenArthur
authored andcommitted
Refactor tool to take input file as positional argument
Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
1 parent ae7b1c7 commit ccbd663

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ process_files() {
5858

5959
# if we have `.stderr` file
6060
if [[ -f "$stderr_file" ]]; then
61-
rusttest-to-dg --file "$file" --stderr "$stderr_file" > "$output_file"
61+
rusttest-to-dg "$file" --stderr "$stderr_file" > "$output_file"
6262
else
63-
rusttest-to-dg --file "$file" > "$output_file"
63+
rusttest-to-dg "$file" > "$output_file"
6464
fi
6565
mv "$output_file" "$file"
6666
fi

src/cli.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ use {
1515
pub struct Arguments {
1616
/// The rust source file to convert into `DejaGnu` format
1717
#[arg(
18-
short = 'f',
19-
long = "file",
18+
// positional argument
2019
value_name = "FILE",
2120
help = "The rust source file to convert into DejaGnu format"
2221
)]

0 commit comments

Comments
 (0)