Skip to content
Stefano Zaghi edited this page Sep 11, 2015 · 1 revision

The following is the list of the errors codes defined by FLAP:

  • error = -2: print help status;
  • error = -1: print version status;
  • error = 0 : no errors occurred;
  • error = 1 : an optional CLA has been added without a default value;
  • error = 2 : a required CLA cannot exclude others;
  • error = 3 : a positional CLA cannot exclude others;
  • error = 4 : a named CLA has been added without a switch name;
  • error = 5 : a positional CLA has been added without a position;
  • error = 6 : a positional CLA has been added without specifying action 'store';
  • error = 7 : the CLA value passed is out of the specified choices;
  • error = 8 : a required CLA is missing;
  • error = 9 : two mutually exclusive CLAs have been passed;
  • error = 10: error happens casting CLA value to logical type;
  • error = 11: error happens adding choices check for CLA value of logical type;
  • error = 12: actual CLA is not list-values (multi-valued);
  • error = 13: list-values CLA has been passed with insufficient arguments;
  • error = 14: missing value of CLA;
  • error = 15: unknown CLA (switch name) has been passed;
  • error = 16: envvar not allowed for positional CLA;
  • error = 17: envvar not allowed action different from store;
  • error = 18: envvar not allowed for list-values CLA;
  • error = 19: action store* not allowed for positional CLA;
  • error = 20: action store* not allowed for list-values CLA;
  • error = 21: action store* not allowed for environment variable CLA;
  • error = 22: unknown CLA action has been passed;
  • error = 23: CLAs group (command) consistency is broken;
  • error = 24: two mutually exclusive CLAs group (commands) have been passed;
  • error = 25: CLA not found in CLI;
  • error = 26: CLAs group (command) not found in CLI;
  • error = 27: CLA selection in CLI failing;
  • error = 28: insufficient arguments for CLI.
Clone this wiki locally