commands: add linker options
This commit is contained in:
@@ -8,3 +8,8 @@ export const optFlag = (flag: string, opt: string | undefined) => undefList(opt,
|
||||
* Generate a switch flag, like "--rebuild", "--nobuild"
|
||||
*/
|
||||
export const optSwitch = (flag: string, opt: boolean | undefined) => undefList(opt, opt => opt ? [flag] : [])
|
||||
|
||||
export const optMultiFlag = (flag: string, opt: string[] | undefined) =>
|
||||
undefList(
|
||||
opt,
|
||||
opt => opt.flatMap(name => [flag, name]))
|
||||
|
||||
Reference in New Issue
Block a user