Skip to content

Commit a055882

Browse files
author
Matthias Koeppe
committed
build/sage_bootstrap/cmdline.py: Normalize help messages to lower-case, remove periods
1 parent 84c35f7 commit a055882

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

build/sage_bootstrap/cmdline.py

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -270,18 +270,18 @@ def make_parser():
270270
parser_config = subparsers.add_parser(
271271
'config', epilog=epilog_config,
272272
formatter_class=argparse.RawDescriptionHelpFormatter,
273-
help='Print the configuration')
273+
help='print the configuration')
274274

275275
parser_list = subparsers.add_parser(
276276
'list', epilog=epilog_list,
277277
formatter_class=argparse.RawDescriptionHelpFormatter,
278-
help='Print a list of packages known to Sage')
278+
help='print a list of packages known to Sage')
279279
parser_list.add_argument(
280280
'package_class', metavar='[package_name|:package_type:]',
281281
type=str, default=[':all-or-nothing:'], nargs='*',
282282
help=('package name or designator for all packages of a given type '
283283
'(one of :all:, :standard:, :optional:, and :experimental:); '
284-
'default: :all: (or nothing when --include-dependencies or --exclude-dependencies is given'))
284+
'default: :all: (or nothing when --include-dependencies or --exclude-dependencies is given)'))
285285
parser_list.add_argument(
286286
'--has-file', action='append', default=[], metavar='FILENAME', dest='has_files',
287287
help=('only include packages that have this file in their metadata directory '
@@ -303,7 +303,7 @@ def make_parser():
303303
parser_properties = subparsers.add_parser(
304304
'properties', epilog=epilog_properties,
305305
formatter_class=argparse.RawDescriptionHelpFormatter,
306-
help='Print properties of given packages')
306+
help='print properties of given packages')
307307
parser_properties.add_argument(
308308
'package_class', metavar='[package_name|:package_type:]',
309309
type=str, nargs='+',
@@ -316,7 +316,7 @@ def make_parser():
316316
parser_dependencies = subparsers.add_parser(
317317
'dependencies', epilog=epilog_dependencies,
318318
formatter_class=argparse.RawDescriptionHelpFormatter,
319-
help='Print the list of packages that are dependencies of given packages')
319+
help='print the list of packages that are dependencies of given packages')
320320
parser_dependencies.add_argument(
321321
'package_class', metavar='[package_name|:package_type:]',
322322
type=str, nargs='+',
@@ -341,51 +341,51 @@ def make_parser():
341341
parser_name = subparsers.add_parser(
342342
'name', epilog=epilog_name,
343343
formatter_class=argparse.RawDescriptionHelpFormatter,
344-
help='Find the package name given a tarball filename')
345-
parser_name.add_argument('tarball_filename', type=str, help='Tarball filename')
344+
help='find the package name given a tarball filename')
345+
parser_name.add_argument('tarball_filename', type=str, help='tarball filename')
346346

347347
parser_tarball = subparsers.add_parser(
348348
'tarball', epilog=epilog_tarball,
349349
formatter_class=argparse.RawDescriptionHelpFormatter,
350-
help='Find the tarball filename given a package name')
351-
parser_tarball.add_argument('package_name', type=str, help='Package name')
350+
help='find the tarball filename given a package name')
351+
parser_tarball.add_argument('package_name', type=str, help='package name')
352352

353353
parser_apropos = subparsers.add_parser(
354354
'apropos', epilog=epilog_apropos,
355355
formatter_class=argparse.RawDescriptionHelpFormatter,
356-
help='Find up to 5 package names that are close to the given name')
356+
help='find up to 5 package names that are close to the given name')
357357
parser_apropos.add_argument(
358358
'incorrect_name', type=str,
359-
help='Fuzzy name to search for')
359+
help='fuzzy name to search for')
360360

361361
parser_update = subparsers.add_parser(
362362
'update', epilog=epilog_update,
363363
formatter_class=argparse.RawDescriptionHelpFormatter,
364-
help='Update a package. This modifies the Sage sources.')
364+
help='update a package, modifying the Sage sources')
365365
parser_update.add_argument(
366-
'package_name', type=str, help='Package name')
366+
'package_name', type=str, help='package name')
367367
parser_update.add_argument(
368-
'new_version', type=str, help='New version')
368+
'new_version', type=str, help='new version')
369369
parser_update.add_argument(
370-
'--url', type=str, default=None, help='Download URL')
370+
'--url', type=str, default=None, help='download URL')
371371
parser_update.add_argument(
372372
'--commit', action="store_true",
373-
help='Whether to run "git commit"')
373+
help='whether to run "git commit"')
374374

375375
parser_update_latest = subparsers.add_parser(
376376
'update-latest', epilog=epilog_update_latest,
377377
formatter_class=argparse.RawDescriptionHelpFormatter,
378-
help='Update a package to the latest version. This modifies the Sage sources.')
378+
help='update a package to the latest version, modifying the Sage sources')
379379
parser_update_latest.add_argument(
380-
'package_name', type=str, help='Package name (:all: for all packages)')
380+
'package_name', type=str, help='package name (:all: for all packages)')
381381
parser_update_latest.add_argument(
382382
'--commit', action="store_true",
383-
help='Whether to run "git commit"')
383+
help='whether to run "git commit"')
384384

385385
parser_download = subparsers.add_parser(
386386
'download', epilog=epilog_download,
387387
formatter_class=argparse.RawDescriptionHelpFormatter,
388-
help='Download tarball')
388+
help='download tarball')
389389
parser_download.add_argument(
390390
'package_class', metavar='[package_name|:package_type:]',
391391
type=str, nargs='+',
@@ -404,25 +404,25 @@ def make_parser():
404404
help='exclude package from list')
405405
parser_download.add_argument(
406406
'--allow-upstream', action="store_true",
407-
help='Whether to fall back to downloading from the upstream URL')
407+
help='whether to fall back to downloading from the upstream URL')
408408
parser_download.add_argument(
409409
'--on-error', choices=['stop', 'warn'], default='stop',
410-
help='What to do if the tarball cannot be downloaded')
410+
help='what to do if the tarball cannot be downloaded')
411411
parser_download.add_argument(
412412
'--no-check-certificate', action='store_true',
413-
help='Do not check SSL certificates for https connections')
413+
help='do not check SSL certificates for https connections')
414414

415415
parser_upload = subparsers.add_parser(
416416
'upload', epilog=epilog_upload,
417417
formatter_class=argparse.RawDescriptionHelpFormatter,
418-
help='Upload tarball to Sage mirrors')
418+
help='upload tarball to Sage mirrors')
419419
parser_upload.add_argument(
420-
'package_name', type=str, help='Package name or :type:')
420+
'package_name', type=str, help='package name or :type:')
421421

422422
parser_fix_checksum = subparsers.add_parser(
423423
'fix-checksum', epilog=epilog_fix_checksum,
424424
formatter_class=argparse.RawDescriptionHelpFormatter,
425-
help='Fix the checksum of normal packages.')
425+
help='fix the checksum of normal packages')
426426
parser_fix_checksum.add_argument(
427427
'package_class', metavar='[package_name|:package_type:]',
428428
type=str, default=[':all:'], nargs='*',
@@ -433,39 +433,39 @@ def make_parser():
433433
parser_create = subparsers.add_parser(
434434
'create', epilog=epilog_create,
435435
formatter_class=argparse.RawDescriptionHelpFormatter,
436-
help='Create or overwrite package.')
436+
help='create or overwrite a package')
437437
parser_create.add_argument(
438438
'package_name', default=None, type=str,
439-
help='Package name.')
439+
help='package name')
440440
parser_create.add_argument(
441-
'--source', type=str, default=None, help='Package source (one of normal, wheel, script, pip); default depends on provided arguments')
441+
'--source', type=str, default=None, help='package source (one of normal, wheel, script, pip); default depends on provided arguments')
442442
parser_create.add_argument(
443-
'--version', type=str, default=None, help='Package version')
443+
'--version', type=str, default=None, help='package version')
444444
parser_create.add_argument(
445-
'--tarball', type=str, default=None, help='Tarball filename pattern, e.g. Foo-VERSION.tar.bz2')
445+
'--tarball', type=str, default=None, help='tarball filename pattern, e.g. Foo-VERSION.tar.bz2')
446446
parser_create.add_argument(
447-
'--type', type=str, default=None, help='Package type')
447+
'--type', type=str, default=None, help='package type')
448448
parser_create.add_argument(
449-
'--url', type=str, default=None, help='Download URL pattern, e.g. http://example.org/Foo-VERSION.tar.bz2')
449+
'--url', type=str, default=None, help='download URL pattern, e.g. http://example.org/Foo-VERSION.tar.bz2')
450450
parser_create.add_argument(
451-
'--description', type=str, default=None, help='Short description of the package (for SPKG.rst)')
451+
'--description', type=str, default=None, help='short description of the package (for SPKG.rst)')
452452
parser_create.add_argument(
453-
'--license', type=str, default=None, help='License of the package (for SPKG.rst)')
453+
'--license', type=str, default=None, help='license of the package (for SPKG.rst)')
454454
parser_create.add_argument(
455-
'--upstream-contact', type=str, default=None, help='Upstream contact (for SPKG.rst)')
455+
'--upstream-contact', type=str, default=None, help='upstream contact (for SPKG.rst)')
456456
parser_create.add_argument(
457457
'--pypi', action="store_true",
458-
help='Create a package for a Python package available on PyPI')
458+
help='create a package for a Python package available on PyPI')
459459

460460
parser_clean = subparsers.add_parser(
461461
'clean', epilog=epilog_clean,
462462
formatter_class=argparse.RawDescriptionHelpFormatter,
463-
help='Remove outdated source tarballs from the upstream/ directory')
463+
help='remove outdated source tarballs from the upstream/ directory')
464464

465465
parser_metrics = subparsers.add_parser(
466466
'metrics', epilog=epilog_metrics,
467467
formatter_class=argparse.RawDescriptionHelpFormatter,
468-
help='Print metrics of given packages')
468+
help='print metrics of given packages')
469469
parser_metrics.add_argument(
470470
'package_class', metavar='[package_name|:package_type:]',
471471
type=str, nargs='*', default=[':all:'],

0 commit comments

Comments
 (0)