From eebd86b501c4ded9df70b1279114db6cc0e04254 Mon Sep 17 00:00:00 2001 From: coderiaser Date: Mon, 17 Jun 2024 15:20:42 +0300 Subject: [PATCH] chore: args --- src/loop.ab | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/loop.ab b/src/loop.ab index 7d0a626..f5bc2aa 100644 --- a/src/loop.ab +++ b/src/loop.ab @@ -4,9 +4,9 @@ import {get_missing_dependency} from "./get-missing-dependency.ab"; import {create_file_when_not_exist} from "./create_file_when_not_exist.ab"; import {resize_file} from "./resize-file.ab"; -main { - let file = "$1" - let size = "$2" +main(args) { + let file = args[0]; + let size = args[1]; if { file == "-v" {