-help or -?

Discuss any general programming issues here

-help or -?

Postby 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
r-tea
 
Posts: 58
Joined: Wed Feb 17, 2016 12:48 am
Location: Zdzieszowice, Poland

Re: -help or -?

Postby 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
airsoftsoftwair
 
Posts: 2163
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: -help or -?

Postby 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
r-tea
 
Posts: 58
Joined: Wed Feb 17, 2016 12:48 am
Location: Zdzieszowice, Poland

Re: -help or -?

Postby 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.
User avatar
airsoftsoftwair
 
Posts: 2163
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany


Return to General programming

Who is online

Users browsing this forum: No registered users and 2 guests