!config
# Arara, the cool TeX automation tool
# Copyright (c) 2023, Island of TeX
# All rights reserved.
#
# This rule is part of arara.
identifier: spix
name: SpiX
authors:
- Island of TeX
commands:
- name: The automation tool
 command: >
   @{
       return getCommand('spix', dry, options, reference.fileName);
   }
arguments:
- identifier: dry
 flag: >
   @{
       return isTrue(parameters.dry, '--dry-run');
   }
- identifier: options
 flag: >
   @{
       if (isList(parameters.options)) {
           return parameters.options;
       }
       else {
           throwError('I was expecting a list of options.');
       }
   }