Jump to content

Photo

Command-line interface


  • Please log in to reply
2 replies to this topic

#1 Orions_Stardom

Orions_Stardom
  • Retired Gibberlings
  • 206 posts
  • Gender:Male

Posted 07 December 2006 - 04:21 AM

MIT as it stands is incredibly useful for people, but impossible to use from within the context of another app. Implementing a CLI would allow for things like the WeiDU front-ends to manage multiple installs with different sets of mods.
Once I clean the code up a bit, implementation should be reasonably trivial - I think that Java's standard library includes CLI parsing somewhere.

Current thoughts on design (all input welcome):

--source - set the source.
--sink - set the sink
--options=[..] - set options, where [..] is a comma-separated list of directories to copy.
--show-options - print the list of optional directories to STDOUT, on one line each.
--interactive - work in interactive mode (ie, show the GUI). Would allow for the GUI to be pre-populated with non-default values.

#2 Orions_Stardom

Orions_Stardom
  • Retired Gibberlings
  • 206 posts
  • Gender:Male

Posted 12 February 2007 - 07:59 PM

Instead of --show-options and --options=csv , I think we can now have one CLI option for each checkbox in the GUI - so, --copy-{data,music,characters,save,portraits}= [true|false]
Defaulting the same way the checkboxes do. In the case where any of the options would be disabled in the GUI, I think the best way would be to ignore them rather than to error.

#3 Orions_Stardom

Orions_Stardom
  • Retired Gibberlings
  • 206 posts
  • Gender:Male

Posted 13 February 2007 - 04:00 AM

This is done in 5.1.6.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users