annotate dos2unix.py @ 148:17d6e760143f

Optimize help / usage output for the global options. Use an argparser group and let disable automatic "-h/--help" arguments.
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 03 Jan 2025 17:04:29 +0100
parents dfe7bb0579e2
children 48430941c18c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
74
6cec638c995c Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
1 # -*- coding: utf-8 -*-
6cec638c995c Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
2 # :-
126
dfe7bb0579e2 Extend copyright years to 2025
Franz Glasner <fzglas.hg@dom66.de>
parents: 116
diff changeset
3 # :Copyright: (c) 2020-2025 Franz Glasner
74
6cec638c995c Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
4 # :License: BSD-3-Clause
6cec638c995c Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
5 # :-
113
Franz Glasner <fzglas.hg@dom66.de>
parents: 74
diff changeset
6 r"""Pure Python implementation of `dos2unix`.
74
6cec638c995c Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
7
6cec638c995c Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
8 """
6cec638c995c Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
9
6cec638c995c Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
10 from __future__ import absolute_import
6cec638c995c Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
11
6cec638c995c Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
12 import sys
6cec638c995c Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
13
6cec638c995c Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
14 import cutils.dos2unix
6cec638c995c Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
15
6cec638c995c Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
16
6cec638c995c Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
17 sys.exit(cutils.dos2unix.main())