Skip to content

Commit

Permalink
Support argv
Browse files Browse the repository at this point in the history
ConnorNelson committed Jan 20, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 5eb8bb2 commit 4c5d38c
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -16,4 +16,4 @@ COPY tests /tests

RUN chmod 4755 /tests/programs/*

CMD ["pytest", "-vv", "/tests"]
CMD ["pytest", "-v", "/tests"]
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -33,6 +33,7 @@ fn main() {
let matches = opts.parse(&exec_argv[1..]).unwrap();

script_argv.push(path.to_str().unwrap().to_string());
script_argv.extend_from_slice(&args[if args.len() == 2 { 2.. } else { 3.. }]);

let stat = stat::stat(path).unwrap_or_else(|err| {
eprintln!("{}: {}", path.display(), err);

0 comments on commit 4c5d38c

Please sign in to comment.