From 2eb3637d86ce4ed901ff7012db35734cc3001a33 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 1 Oct 2024 12:54:14 +0300 Subject: [PATCH] show help for `./go2v` without arguments as well --- main.v | 1 + 1 file changed, 1 insertion(+) diff --git a/main.v b/main.v index c8e3c42..c4ebc15 100644 --- a/main.v +++ b/main.v @@ -216,6 +216,7 @@ fn main() { fp.footer(' The test folder is expected to have 2 files in it - a .go file and a .vv file.') fp.footer(' The .go file will be translated, and then the output will be compared to the .vv file.') fp.footer(' A failure will be reported, if there are differences.') + fp.limit_free_args_to_exactly(1)! fp.skip_executable() mut go_file_name := fp.finalize() or { eprintln(err)