optimizations #161

Open
emma wants to merge 44 commits from optimizations into main
2 changed files with 3 additions and 0 deletions
Showing only changes of commit f50bfeea92 - Show all commits

View File

@ -61,6 +61,8 @@ fn main() -> ExitCode {
} }
} }
if argv.len() == 1 { return ExitCode::from(usage(&argv[0])); }
while let Some(opt) = argv.getopt("d:") { while let Some(opt) = argv.getopt("d:") {
match opt.opt() { match opt.opt() {
Ok("d") => { Ok("d") => {

View File

@ -24,6 +24,7 @@ fop_fail: $(BIN)/fop
! printf 'test\n' | $(BIN)/fop 1 cat ! printf 'test\n' | $(BIN)/fop 1 cat
! printf 'test\n' | $(BIN)/fop 'test' cat ! printf 'test\n' | $(BIN)/fop 'test' cat
! printf 'test\n' | $(BIN)/fop -d'test' cat ! printf 'test\n' | $(BIN)/fop -d'test' cat
! $(BIN)/fop
.PHONY: fop_functionality .PHONY: fop_functionality
fop_functionality: $(BIN)/fop fop_functionality: $(BIN)/fop