Commits

Daniel Graña committed 3db374c

rename --usenetrc flag to --netrc (same as curl)

Comments (0)

Files changed (1)

     if parameters['httpauth']:
         request.add_header('Authorization', 'Basic %s' \
                     % base64.encodestring(parameters['httpauth'])[:-1])
-    elif parameters['usenetrc']:
+    elif parameters['netrc']:
         auth = _netrc_get_credentials(url)
         if auth:
             request.add_header('Authorization', 'Basic %s' \
     if parameters['httpauth']:
         request.add_header('Authorization', 'Basic %s' \
                     % base64.encodestring(parameters['httpauth'])[:-1])
-    elif parameters['usenetrc']:
+    elif parameters['netrc']:
         auth = _netrc_get_credentials(url)
         if auth:
             request.add_header('Authorization', 'Basic %s' \
         ('',  'dry-run', False, 'do not paste to the pastebin'),
         ('',  'url', '', 'perform request against this url'),
         ('',  'httpauth', '', 'http authorization (user:pass)'),
-        ('',  'usenetrc', False, 'use ~/.netrc for http authorization'),
+        ('',  'netrc', False, 'use ~/.netrc for http authorization'),
     ] + commands.diffopts + commands.walkopts,
     'hg paste [OPTION] [-r REV] [FILE...]')
 }