Opened 12 years ago

Closed 12 years ago

Last modified 8 months ago

#8666 closed patch

Reject long commandline parameters that lack the option

Reported by: jvprat Owned by: fingolfin
Priority: normal Component: --Other--
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 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by jvprat

Attachment: longoptions.patch added

comment:1 Changed 12 years ago by fingolfin

Owner: set to fingolfin
Status: newclosed

comment:2 Changed 12 years ago by fingolfin

Thanks, patch looks fine & is in SVN now.

comment:3 Changed 8 months ago by digitall

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