mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1643317: |mach bootstrap --help| uses file ref to explain --app-choice r=rstewart
Previously, python import syntax was used to refer users to the definition of the --application-choice arguments. However, it isn't straightforward to the uninitiated, especially since it doesn't work in searchfox. Instead, by providing a file reference, it should be more accessible. Differential Revision: https://phabricator.services.mozilla.com/D79003
This commit is contained in:
parent
1637effc03
commit
0fcab2f5a1
@ -159,8 +159,9 @@ def main(args):
|
||||
'content. Like --repo, you should not need to set this.')
|
||||
|
||||
parser.add_option('--application-choice', dest='application_choice',
|
||||
help='Pass in an application choice (see mozboot.bootstrap.APPLICATIONS) '
|
||||
'instead of using the default interactive prompt.')
|
||||
help='Pass in an application choice (see "APPLICATIONS" in '
|
||||
'python/mozboot/mozboot/bootstrap.py) instead of using the '
|
||||
'default interactive prompt.')
|
||||
parser.add_option('--vcs', dest='vcs', default=None,
|
||||
help='VCS (hg or git) to use for downloading the source code, '
|
||||
'instead of using the default interactive prompt.')
|
||||
|
@ -12,6 +12,7 @@ from mach.decorators import (
|
||||
CommandProvider,
|
||||
Command,
|
||||
)
|
||||
from mozboot.bootstrap import APPLICATIONS
|
||||
|
||||
|
||||
@CommandProvider
|
||||
@ -23,9 +24,10 @@ class Bootstrap(object):
|
||||
@Command('bootstrap', category='devenv',
|
||||
description='Install required system packages for building.')
|
||||
@CommandArgument('--application-choice',
|
||||
choices=list(APPLICATIONS.keys()) + list(APPLICATIONS.values()),
|
||||
default=None,
|
||||
help='Pass in an application choice (see mozboot.bootstrap.APPLICATIONS) '
|
||||
'instead of using the default interactive prompt.')
|
||||
help='Pass in an application choice instead of using the default '
|
||||
'interactive prompt.')
|
||||
@CommandArgument('--no-interactive', dest='no_interactive', action='store_true',
|
||||
help='Answer yes to any (Y/n) interactive prompts.')
|
||||
@CommandArgument('--no-system-changes', dest='no_system_changes',
|
||||
|
Loading…
Reference in New Issue
Block a user