* cygpath.cc (long_options): Add "mode" option.

(options): Ditto.
(usage): Report on new option.
(report_mode): New function.
(main): Implement -M option.
This commit is contained in:
Christopher Faylor
2004-02-25 01:23:20 +00:00
parent 5ef9bbc874
commit f135dd3ee7
3 changed files with 41 additions and 6 deletions

View File

@@ -119,6 +119,7 @@ Convert Unix and Windows format paths, or output system path information
Output type options:
-d, --dos print DOS (short) form of NAME (C:\PROGRA~1\)
-m, --mixed like --windows, but with regular slashes (C:/WINNT)
-M, --mode report on mode of file (currently binmode or textmode)
-u, --unix (default) print Unix form of NAME (/cygdrive/c/winnt)
-w, --windows print Windows form of NAME (C:\WINNT)
-t, --type TYPE print TYPE form: 'dos', 'mixed', 'unix', or 'windows'