private static void printActions(boolean shell) {
    StringBuilder b = new StringBuilder();
    ActionType[] act = shell ? ActionType.CSHELL : ActionType.CNORM;
    for (ActionType a : act) {
      if (b.length() > 0) b.append(", "); //$NON-NLS-1$
      b.append(a.code());
    }
    b.insert(0, Messages.getString("Help.list_actions")); //$NON-NLS-1$
    System.out.println(headerSection(b));

    for (ActionType a : act) {
      b = new StringBuilder(a.code());
      switch (a.mustId()) {
        case 1: b.append(" {<id>}")    ; break; //$NON-NLS-1$
        case 0: b.append(" [{id}|all]"); break; //$NON-NLS-1$
      }
      switch (a.mustOption()) {
        case 1: b.append(" {<options> <arg>}")  ; break; //$NON-NLS-1$
        case 0: b.append(" [{<options> <arg>}]"); break; //$NON-NLS-1$
      }
      System.out.println(code(b));
      System.out.println(description(new StringBuilder(a.help())));
    }
    System.out.println();
  }