aboutsummaryrefslogtreecommitdiff
path: root/sim/rl78/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/rl78/main.c')
-rw-r--r--sim/rl78/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sim/rl78/main.c b/sim/rl78/main.c
index c9459c7..ea6ddaa 100644
--- a/sim/rl78/main.c
+++ b/sim/rl78/main.c
@@ -64,10 +64,12 @@ main (int argc, char **argv)
int save_trace;
bfd *prog;
int rc;
+ static const struct option longopts[] = { { 0 } };
xmalloc_set_program_name (argv[0]);
- while ((o = getopt (argc, argv, "tvdr:D:M:")) != -1)
+ while ((o = getopt_long (argc, argv, "tvdr:D:M:", longopts, NULL))
+ != -1)
{
switch (o)
{