-
- /* Verify arguments. */
- if (cmd.first > cmd.last)
- {
- int t;
- msg (SW, _("The first case (%ld) specified precedes the last case (%ld) "
- "specified. The values will be swapped."), cmd.first, cmd.last);
- t = cmd.first;
- cmd.first = cmd.last;
- cmd.last = t;
- }
-
- if (cmd.first < 1)
- {
- msg (SW, _("The first case (%ld) to list is numbered less than 1. "
- "The value is being reset to 1."), cmd.first);
- cmd.first = 1;
- }
-
- if (cmd.last < 1)
- {
- msg (SW, _("The last case (%ld) to list is numbered less than 1. "
- "The value is being reset to 1."), cmd.last);
- cmd.last = 1;
- }
-
- if (cmd.step < 1)
- {
- msg (SW, _("The step value %ld is less than 1. The value is being "
- "reset to 1."), cmd.step);
- cmd.step = 1;
- }
-
- /* If no variables were explicitly provided, then default to ALL */
- if (cmd.n_variables == 0)
- dict_get_vars (dict, &cmd.v_variables, &cmd.n_variables,
- DC_SYSTEM | DC_SCRATCH);
-
+ if (!cmd.n_vars)
+ dict_get_vars (dict, &cmd.vars, &cmd.n_vars, DC_SYSTEM | DC_SCRATCH);