From ae9a7aef2f0422f6872e6ae27e4e4e2084d8ce8f Mon Sep 17 00:00:00 2001 From: Oxore Date: Wed, 19 Oct 2022 00:40:35 +0300 Subject: Use argv[0] in "usage" message --- emulator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emulator.cpp') diff --git a/emulator.cpp b/emulator.cpp index 2ee42ba..3ec756d 100644 --- a/emulator.cpp +++ b/emulator.cpp @@ -511,7 +511,7 @@ int main(int argc, char* argv[]) { if (argc != 2) { - printf("Usage: sim \n"); + printf("Usage: %s \n", argv[0]); exit(-1); } -- cgit v1.2.3