Skip to content

Commit

Permalink
Refactor tool to take input file as positional argument
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
  • Loading branch information
MahadMuhammad committed Jan 18, 2025
1 parent 8b7d35f commit b8049cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ process_files() {

# if we have `.stderr` file
if [[ -f "$stderr_file" ]]; then
rusttest-to-dg --file "$file" --stderr "$stderr_file" > "$output_file"
rusttest-to-dg "$file" --stderr "$stderr_file" > "$output_file"
else
rusttest-to-dg --file "$file" > "$output_file"
rusttest-to-dg "$file" > "$output_file"
fi
mv "$output_file" "$file"
fi
Expand Down
3 changes: 1 addition & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ use {
pub struct Arguments {
/// The rust source file to convert into `DejaGnu` format
#[arg(
short = 'f',
long = "file",
// positional argument
value_name = "FILE",
help = "The rust source file to convert into DejaGnu format"
)]
Expand Down

0 comments on commit b8049cb

Please sign in to comment.