mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
13 lines
377 B
V
13 lines
377 B
V
#!/usr/bin/env -S v -raw-vsh-tmp-prefix tmp
|
|
|
|
// This script is used by cmd/tools/vretry_test.v, to check that the `v retry`
|
|
// subcommand works as expected, without relying on external commands like
|
|
// `git`, or on non portable ones like `true`/`false` or `echo`.
|
|
|
|
fn main() {
|
|
args := arguments()#[1..]
|
|
println(args)
|
|
if args == ['too', 'many', 'arguments'] {
|
|
exit(1)
|
|
}
|
|
}
|