tools/site_compare/command_line.py
def ArgSorter(arg1, arg2):
      """Helper for sorting arguments in the usage string.

      Positional arguments come first, then required arguments,
      then optional arguments. Pylint demands this trivial function
      have both Args: and Returns: sections, sigh.

      Args:
        arg1: the first argument to compare
        arg2: the second argument to compare

      Returns:
        -1 if arg1 should be sorted first, +1 if it should be sorted second,
        and 0 if arg1 and arg2 have the same sort level.
      """
      return ((arg2.positional-arg1.positional)*2 +
              (arg2.required-arg1.required))
Helper for sorting arguments in the usage string.

      Positional arguments come first, then required arguments,
      then optional arguments. Pylint demands this trivial function
      have both Args: and Returns: sections, sigh.

      Args:
        arg1: the first argument to compare
        arg2: the second argument to compare

      Returns:
        -1 if arg1 should be sorted first, +1 if it should be sorted second,
        and 0 if arg1 and arg2 have the same sort level.
      
Helper for sorting arguments in the usage string.
Positional arguments come first, then required arguments,
then optional arguments. Pylint demands this trivial function
have both Args: and Returns: sections, sigh.
Helper for sorting arguments in the usage string . Positional arguments come first then required arguments then optional arguments . Pylint demands this trivial function have both Args : and Returns : sections sigh .
def ArgSorter(arg1, arg2):
      return ((arg2.positional-arg1.positional)*2 +
              (arg2.required-arg1.required))
def ArgSorter ( arg1 , arg2 ) : return ( ( arg2 . positional - arg1 . positional ) * 2 + ( arg2 . required - arg1 . required ) )
Helper for sorting arguments in the usage string.
Helper for sorting arguments in the usage string .
"""Helper for sorting arguments in the usage string.

      Positional arguments come first, then required arguments,
      then optional arguments. Pylint demands this trivial function
      have both Args: and Returns: sections, sigh.

      Args:
        arg1: the first argument to compare
        arg2: the second argument to compare

      Returns:
        -1 if arg1 should be sorted first, +1 if it should be sorted second,
        and 0 if arg1 and arg2 have the same sort level.
      """
1 if arg1 should be sorted first, +1 if it should be sorted second,
and 0 if arg1 and arg2 have the same sort level.
1 if arg1 should be sorted first + 1 if it should be sorted second and 0 if arg1 and arg2 have the same sort level .
arg1
the first argument to compare
the first argument to compare
arg2
the second argument to compare
the second argument to compare