mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-02 03:50:36 +00:00
Also support GNU style -h and --help options
This commit is contained in:
parent
306ad0f676
commit
648d16a2c0
|
@ -12668,7 +12668,7 @@ FUNCTION ParseCMDLineArgs$ ()
|
|||
'in which case they're simply asking for trouble).
|
||||
FOR i = 1 TO _COMMANDCOUNT
|
||||
token$ = COMMAND$(i)
|
||||
IF LCASE$(token$) = "-help" OR LCASE$(token$) = "/help" THEN token$ = "-?"
|
||||
IF LCASE$(token$) = "-help" OR LCASE$(token$) = "--help" OR LCASE$(token$) = "-h" OR LCASE$(token$) = "/help" THEN token$ = "-?"
|
||||
SELECT CASE LCASE$(LEFT$(token$, 2))
|
||||
CASE "-?" 'Command-line help
|
||||
_DEST _CONSOLE
|
||||
|
|
Loading…
Reference in a new issue