Bug 1157299 - Post to pastebin as "Anonymous" instead of "None" by default. r=gps
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 24 Apr 2015 10:08:30 +0900
changeset 241033 9fc389222632a233b94f9dfe606905a12d50339e
parent 241032 daa7b4d7986fc9e2e3b46237bb5558755d4cd5aa
child 241034 73b58ad49fc4aeb61fd3052ef6e67df9b34b9a66
push id59000
push usermh@glandium.org
push dateFri, 24 Apr 2015 23:37:06 +0000
treeherdermozilla-inbound@9fc389222632 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs1157299
milestone40.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 1157299 - Post to pastebin as "Anonymous" instead of "None" by default. r=gps
tools/mach_commands.py
--- a/tools/mach_commands.py
+++ b/tools/mach_commands.py
@@ -205,17 +205,17 @@ class UUIDProvider(object):
         updates.update()
 
 @CommandProvider
 class PastebinProvider(object):
     @Command('pastebin', category='misc',
         description='Command line interface to pastebin.mozilla.org.')
     @CommandArgument('--language', default=None,
                      help='Language to use for syntax highlighting')
-    @CommandArgument('--poster', default=None,
+    @CommandArgument('--poster', default='',
                      help='Specify your name for use with pastebin.mozilla.org')
     @CommandArgument('--duration', default='day',
                      choices=['d', 'day', 'm', 'month', 'f', 'forever'],
                      help='Keep for specified duration (default: %(default)s)')
     @CommandArgument('file', nargs='?', default=None,
                      help='Specify the file to upload to pastebin.mozilla.org')
 
     def pastebin(self, language, poster, duration, file):