Skip to content

Commit 9f1d26d

Browse files
author
Kazuki Suzuki Przyborowski
committed
Update catfile.py
1 parent 6ac374b commit 9f1d26d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

catfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def handler(signum, frame):
114114
help="Re-concatenate files, fixing checksum errors if any.")
115115
# File manipulation options
116116
argparser.add_argument(
117-
"-F", "--format", default=__file_format_dict__['format_name'], help="Specify the format to use.")
117+
"-F", "--format", default="auto", help="Specify the format to use.")
118118
argparser.add_argument(
119119
"-D", "--delimiter", default=__file_format_dict__['format_delimiter'], help="Specify the delimiter to use.")
120120
argparser.add_argument(
@@ -148,9 +148,9 @@ def handler(signum, frame):
148148

149149
fname = getargs.format
150150
fnamelower = fname.lower()
151-
if(getargs.format==__file_format_dict__['format_name']):
151+
if(getargs.format=="auto"):
152152
fnamedict = __file_format_multi_dict__
153-
__file_format_default__ = "auto"
153+
__file_format_default__ = getargs.format
154154
else:
155155
fnamemagic = fname
156156
fnamelen = len(fname)

0 commit comments

Comments
 (0)