diff options
author | Oxore <oxore@protonmail.com> | 2022-10-19 00:40:35 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2022-10-19 00:40:35 +0300 |
commit | ae9a7aef2f0422f6872e6ae27e4e4e2084d8ce8f (patch) | |
tree | 2c3899b72db519291b4cc21a3cfb9afac11e56df | |
parent | 46696e1d57aa33b3bf1cd54cc78ef58dc14c8079 (diff) |
Use argv[0] in "usage" message
-rw-r--r-- | emulator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 <program file>\n"); + printf("Usage: %s <program file>\n", argv[0]); exit(-1); } |