Run v fmt

pull/3/head
Subhomoy Haldar 2023-04-20 13:34:13 +01:00
parent f6dbd4abd2
commit bb8d6856aa
2 changed files with 5 additions and 5 deletions

8
geo.v
View File

@ -20,10 +20,10 @@ fn main() {
`*`
}
additional_args := fp.finalize() ?
additional_args := fp.finalize()!
if additional_args.len > 0 {
println('Unprocessed arguments:\n$additional_args.join_lines()')
println('Unprocessed arguments:\n${additional_args.join_lines()}')
}
if size <= 0 {
@ -32,7 +32,7 @@ fn main() {
}
if shape !in geometry.allowed_shapes && shape != 'none' {
println('Invalid shape: $shape')
println('Invalid shape: ${shape}')
println(fp.usage())
exit(1)
}
@ -49,7 +49,7 @@ fn get_shape_input() geometry.GeometricShapeKind {
input_string := (os.input_opt('Enter a shape: ') or { 'none' }).to_lower()
if input_string == 'none' || input_string !in geometry.allowed_shapes {
println('Invalid shape: $input_string')
println('Invalid shape: ${input_string}')
println('Available options are: ${geometry.allowed_shapes.join(', ')}')
continue
}

View File

@ -17,7 +17,7 @@ fn test_help() {
flags := ['--help', '-h']
for flag in flags {
result := os.execute_or_panic('${os.quoted_path(@VEXE)} run . $flag')
result := os.execute_or_panic('${os.quoted_path(@VEXE)} run . ${flag}')
assert result.exit_code == 0
for term in output_search_terms {