tools/fix_b2g_stack.py
def add_argparse_arguments(parser):
    '''Add arguments to an argparse parser which make the parser's result
    suitable for passing to fix_b2g_stacks_in_file.

    You might use this in your code as something like:

      parser = argparse.ArgumentParser()
      b2g_stack_group = parser.add_argument_group(...)
      fix_b2g_stack.add_argparse_arguments(b2g_stack_group)

    '''
    parser.add_argument('--toolchain-dir', metavar='DIR',
                        help='Directory containing toolchain binaries')
    parser.add_argument('--toolchain-prefix', metavar='PREFIX',
                        help='Toolchain binary prefix (e.g. "arm-linux-androideabi-")')
    parser.add_argument('--gecko-objdir', metavar='DIR',
                        help='Path to gecko objdir (default: ../objdir-gecko)')
    parser.add_argument('--gonk-objdir', metavar='DIR',
                        help='Path to gonk objdir (default: $B2G_ROOT/out)')
    parser.add_argument('--product', metavar='PRODUCT',
                        help='Product being built (e.g. "otoro").  '
                             'We try to detect this automatically.')
    parser.add_argument('--remove-cache', action='store_true',
                        help="Delete the persistent addr2line cache before running.")
Add arguments to an argparse parser which make the parser's result
    suitable for passing to fix_b2g_stacks_in_file.

    You might use this in your code as something like:

      parser = argparse.ArgumentParser()
      b2g_stack_group = parser.add_argument_group(...)
      fix_b2g_stack.add_argparse_arguments(b2g_stack_group)

    
Add arguments to an argparse parser which make the parser's result
suitable for passing to fix_b2g_stacks_in_file.

You might use this in your code as something like.


Add arguments to an argparse parser which make the parser ' s result suitable for passing to fix_b2g_stacks_in_file . You might use this in your code as something like .
def add_argparse_arguments(parser):
    parser.add_argument('--toolchain-dir', metavar='DIR',
                        help='Directory containing toolchain binaries')
    parser.add_argument('--toolchain-prefix', metavar='PREFIX',
                        help='Toolchain binary prefix (e.g. "arm-linux-androideabi-")')
    parser.add_argument('--gecko-objdir', metavar='DIR',
                        help='Path to gecko objdir (default: ../objdir-gecko)')
    parser.add_argument('--gonk-objdir', metavar='DIR',
                        help='Path to gonk objdir (default: $B2G_ROOT/out)')
    parser.add_argument('--product', metavar='PRODUCT',
                        help='Product being built (e.g. "otoro").  '
                             'We try to detect this automatically.')
    parser.add_argument('--remove-cache', action='store_true',
                        help="Delete the persistent addr2line cache before running.")
def add_argparse_arguments ( parser ) : parser . add_argument ( '--toolchain-dir' , metavar = 'DIR' , help = 'Directory containing toolchain binaries' ) parser . add_argument ( '--toolchain-prefix' , metavar = 'PREFIX' , help = 'Toolchain binary prefix (e.g. "arm-linux-androideabi-")' ) parser . add_argument ( '--gecko-objdir' , metavar = 'DIR' , help = 'Path to gecko objdir (default: ../objdir-gecko)' ) parser . add_argument ( '--gonk-objdir' , metavar = 'DIR' , help = 'Path to gonk objdir (default: $B2G_ROOT/out)' ) parser . add_argument ( '--product' , metavar = 'PRODUCT' , help = 'Product being built (e.g. "otoro").  ' 'We try to detect this automatically.' ) parser . add_argument ( '--remove-cache' , action = 'store_true' , help = "Delete the persistent addr2line cache before running." )
Add arguments to an argparse parser which make the parser's result
suitable for passing to fix_b2g_stacks_in_file.
Add arguments to an argparse parser which make the parser ' s result suitable for passing to fix_b2g_stacks_in_file .
'''Add arguments to an argparse parser which make the parser's result
    suitable for passing to fix_b2g_stacks_in_file.

    You might use this in your code as something like:

      parser = argparse.ArgumentParser()
      b2g_stack_group = parser.add_argument_group(...)
      fix_b2g_stack.add_argparse_arguments(b2g_stack_group)

    '''
parser