diff options
Diffstat (limited to '')
-rw-r--r-- | project/boost/download.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/project/boost/download.py b/project/boost/download.py index 954ec1f..d135eb3 100644 --- a/project/boost/download.py +++ b/project/boost/download.py @@ -10,10 +10,10 @@ is that it's supposed to be cross-platform. Usage examples: - $ %(prog)s 1.71.0 + $ python -m project.boost.download 1.71.0 ... - $ %(prog)s --unpack ~/workspace/third-party/ 1.65.0 + $ python -m project.boost.download --unpack ~/workspace/third-party/ 1.65.0 ... ''' @@ -98,8 +98,10 @@ def _parse_args(argv=None): parser.add_argument('--cache', metavar='DIR', dest='cache_dir', type=project.utils.normalize_path, help='download directory (temporary file unless specified)') - parser.add_argument('version', metavar='VERSION', type=Version.from_string, + parser.add_argument('version', metavar='VERSION', + type=Version.from_string, help='Boost version (in the MAJOR.MINOR.PATCH format)') + return parser.parse_args(argv) |