mritter Posted December 31, 2008 Share Posted December 31, 2008 I was asked if I could add a command line arg to toggle "Load desktop before install". It is no big deal to add it. But why stop there? Would you want to see all (or nearly all) options be changable via a command line arg?WPI.hta options=myoptions.js ShowExtraButtons=true InstallByCategory=false ShowCommandLineInInstaller=trueThis would temporarily override your saved settings.Whatcha think? Link to comment Share on other sites More sharing options...
johnhc Posted December 31, 2008 Share Posted December 31, 2008 mritter, I'm sure it would be useful, but I have never used switches and think I am OK with what I have. Some may feel strongly that they would be useful. Enjoy, John. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted December 31, 2008 Share Posted December 31, 2008 OMG wow...I personally think thats overkill m8.config, options, and time should be plenty... Link to comment Share on other sites More sharing options...
AlBundy33 Posted January 1, 2009 Share Posted January 1, 2009 Happy new Year!!! I think this is a good idea. :-)Some options are really necessary - some maybe not.So we could vote for options we want to have also available on commandline.But: Maybe there is a user which needs an option for a very specific case which is not in the list. So why not implement something like a Map (or Dictionary in JS?) which holds all config-settings (key = config-key, value = config-value) and is initialized with default-values and can be overwritten with command-line-arguments.e.g. settings['options'] = './WPIScripts/config.js';if [command_line_has_options_argument] settings['options'] = get_argument_from_command_lineSo you have- all settings at one place- can easily extend it- can easily overwrite all settings with command-line-argumentsAl Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now