LFScript Switches

From LFScript
Revision as of 19:05, 30 January 2012 by Marcel (talk | contribs) (Created page with "LFScript is a command line application. You must provide LFScript with one or more ''switches'' to control what LFScript will build. Some switches (also called 'options') requ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LFScript is a command line application. You must provide LFScript with one or more switches to control what LFScript will build. Some switches (also called 'options') require additional arguments.

If you want to give several options without arguments, you can collapse them. The following two commands produce identical results:

./lfscript -B -u -x nano -k myconfig.config
./lfscript -Bux nano -k myconfig.config

If you want to give a switch multiple arguments you must enclose them in quote marks.

./lfscript -Bx nano which    # WRONG!
./lfscript -Bx "nano which"  # Right

Every switch should be used only once per session, and not every switch will allow the use of others.

Selecting the base system

Every time you use LFScript, you must specify a base system at least. Even if you've already build it and only want to extend or install your system, you must always specify which base system to use.

-B ("find the base system for me")

Normally, LFScript is distributed with scripts for a single base system in which case you can just