Bug 1638982 - [remote] Remove custom usage output for the remote command. r=remote-protocol-reviewers,maja_zf
authorHenrik Skupin <mail@hskupin.info>
Wed, 20 May 2020 04:35:21 +0000
changeset 530942 2a54634147e5af3120138c4360e4816602f2dc2d
parent 530941 c17af0632260c9e645f5ba983a54602c50cfb1ec
child 530943 3a73bf75d1ce7ee59f7765cbb89dc43f858f5765
push id37434
push userabutkovits@mozilla.com
push dateWed, 20 May 2020 10:05:10 +0000
treeherdermozilla-central@005ef1c25992 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersremote-protocol-reviewers, maja_zf
bugs1638982
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1638982 - [remote] Remove custom usage output for the remote command. r=remote-protocol-reviewers,maja_zf This aligns our code with other mach commands that don't show the command usage if no subcommand has been specified. Differential Revision: https://phabricator.services.mozilla.com/D75900
remote/mach_commands.py
--- a/remote/mach_commands.py
+++ b/remote/mach_commands.py
@@ -58,18 +58,17 @@ def setup():
 class RemoteCommands(MachCommandBase):
     def __init__(self, context):
         MachCommandBase.__init__(self, context)
         self.remotedir = os.path.join(self.topsrcdir, "remote")
 
     @Command("remote", category="misc",
              description="Remote protocol related operations.")
     def remote(self):
-        self.parser.print_usage()
-        exit(EX_USAGE)
+        """The remote subcommands all relate to the remote protocol."""
 
     @SubCommand("remote", "vendor-puppeteer",
                 "Pull in latest changes of the Puppeteer client.")
     @CommandArgument("--repository",
                      metavar="REPO",
                      default=DEFAULT_REPO,
                      help="The (possibly remote) repository to clone from. "
                           "Defaults to {}.".format(DEFAULT_REPO))