Opened 14 years ago

Closed 14 years ago

Last modified 2 years ago

#8666 closed patch

Reject long commandline parameters that lack the option

Reported by: jvprat Owned by: fingolfin
Priority: normal Component: --Other--
Version: Keywords:
Cc: Game:


Currently the long commandline parameters are simply ignored if they don't have the needed option. For example running:

scummvm --config scummvm --config=

has no effect, while running

scummvm -c

gives this message:

scummvm: Option '-c' requires an argument

The attached patch modifies the long parameters behavior to be coherent with the short ones.

It also reuses the message in DO_OPTION_INT.

Ticket imported from: #1726251. Ticket imported from: patches/771.

Attachments (1)

longoptions.patch (1.1 KB ) - added by jvprat 14 years ago.

Download all attachments as: .zip

Change History (4)

by jvprat, 14 years ago

Attachment: longoptions.patch added

comment:1 by fingolfin, 14 years ago

Owner: set to fingolfin
Status: newclosed

comment:2 by fingolfin, 14 years ago

Thanks, patch looks fine & is in SVN now.

comment:3 by digitall, 2 years ago

Component: --Other--
Note: See TracTickets for help on using tickets.