version 1.61, 2015/04/01 21:16:17 |
version 1.62, 2015/04/01 21:18:43 |
|
|
sort_opts_vals.zflag = true; |
sort_opts_vals.zflag = true; |
break; |
break; |
case SORT_OPT: |
case SORT_OPT: |
if (optarg) { |
if (!strcmp(optarg, "general-numeric")) |
if (!strcmp(optarg, "general-numeric")) |
set_sort_modifier(sm, 'g'); |
set_sort_modifier(sm, 'g'); |
else if (!strcmp(optarg, "human-numeric")) |
else if (!strcmp(optarg, "human-numeric")) |
set_sort_modifier(sm, 'h'); |
set_sort_modifier(sm, 'h'); |
else if (!strcmp(optarg, "numeric")) |
else if (!strcmp(optarg, "numeric")) |
set_sort_modifier(sm, 'n'); |
set_sort_modifier(sm, 'n'); |
else if (!strcmp(optarg, "month")) |
else if (!strcmp(optarg, "month")) |
set_sort_modifier(sm, 'M'); |
set_sort_modifier(sm, 'M'); |
else if (!strcmp(optarg, "random")) |
else if (!strcmp(optarg, "random")) |
set_sort_modifier(sm, 'R'); |
set_sort_modifier(sm, 'R'); |
else |
else |
unknown(optarg); |
unknown(optarg); |
|
} |
|
break; |
break; |
case QSORT_OPT: |
case QSORT_OPT: |
sort_opts_vals.sort_method = SORT_QSORT; |
sort_opts_vals.sort_method = SORT_QSORT; |