summaryrefslogtreecommitdiff
path: root/src/htscoremain.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-09-03 17:43:22 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-09-03 17:43:22 +0000
commitfd69106947dbb0a5139b032c6c8f7978092061ca (patch)
tree0ae2243b91fa88b5acc13d5082b4f12763e1b529 /src/htscoremain.c
parent5bd7e12eae850318e4c853177c2e97500985a1ac (diff)
Added option '-%t', preserving the original file type (which may produce non-browseable file locally)
Diffstat (limited to 'src/htscoremain.c')
-rw-r--r--src/htscoremain.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/htscoremain.c b/src/htscoremain.c
index 044e720..21cffd4 100644
--- a/src/htscoremain.c
+++ b/src/htscoremain.c
@@ -1919,6 +1919,11 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp * opt) {
}
break;
+ case 't': /* do not change type (ending) of filenames according to the MIME type */
+ opt->no_type_change = 1;
+ if (*(com+1)=='0') { opt->no_type_change = 0; com++; }
+ break;
+
default:{
char s[HTS_CDLMAXSIZE + 256];