Skip to content

Commit

Permalink
Fix wrong executable name in help msg (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
MusicFreak456 authored Dec 6, 2024
1 parent 25dd8dd commit 73313ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/main.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let usage_msg = "chip8_asm <input_file> -o <output_file>"
let usage_msg = " <input_file> -o <output_file>"

let input_file = ref ""
let output_file = ref ""
Expand Down Expand Up @@ -54,7 +54,7 @@ let assemble filename =

let main =
if Array.length Sys.argv = 1 then
(Arg.usage speclist usage_msg; false)
(Arg.usage speclist (Sys.argv.(0) ^ usage_msg); false)
else
if parse_argv () then assemble !input_file else false

Expand Down

0 comments on commit 73313ba

Please sign in to comment.