Opened 17 years ago

Closed 17 years ago

Last modified 6 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:

Description

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 17 years ago.

Download all attachments as: .zip

Change History (4)

by jvprat, 17 years ago

Attachment: longoptions.patch added

comment:1 by fingolfin, 17 years ago

Owner: set to fingolfin
Status: newclosed

comment:2 by fingolfin, 17 years ago

Thanks, patch looks fine & is in SVN now.

comment:3 by digitall, 6 years ago

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