-help or -?

Discuss any general programming issues here
Post Reply
User avatar
r-tea
Posts: 59
Joined: Wed Feb 17, 2016 12:48 am
Location: Zdzieszowice, Poland
Contact:

-help or -?

Post by r-tea » Sun Sep 10, 2017 11:19 pm

I want to add "help" and/or "?" console options(s) to my application, but it seems to Hollywood ignores both. I can see there's already -help option implemented for hollywood compiler.
Does Hollywood make difference for -help passed to itself and -help passed to a standalone executablehandled from within?
And what about -? argument? It seems to be ignored as well.

User avatar
airsoftsoftwair
Posts: 2450
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: -help or -?

Post by airsoftsoftwair » Mon Sep 11, 2017 11:08 pm

Arguments have to start with a letter from the English alphabet so "?" is not acceptable. Also, arguments recognized by Hollywood itself are reserved, so you cannot use -help either.

User avatar
r-tea
Posts: 59
Joined: Wed Feb 17, 2016 12:48 am
Location: Zdzieszowice, Poland
Contact:

Re: -help or -?

Post by r-tea » Tue Sep 12, 2017 6:47 pm

Thanks for clarifying.
Have you ever considered to support AmigaOS like parameters - without "-" character?
They (parameters) would be distinguished depending on what is executed - Hollywood itself followed by a csript or a standalone executable made with Hollywood.

User avatar
airsoftsoftwair
Posts: 2450
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: -help or -?

Post by airsoftsoftwair » Wed Sep 13, 2017 9:00 pm

Hollywood used Amiga-style parameters without the hyphen prior to Hollywood 3.0 but this was then dropped when cross-platform functionality was introduced. I don't think it makes sense to go back to the old style now.

Post Reply