original_docstring: Register devtool subcommands from this plugin
docstring: Register devtool subcommands from this plugin
docstring_tokens: Register devtool subcommands from this plugin
code: def register_commands(subparsers, context):
      """Register devtool subcommands from this plugin"""
      parser_edit_recipe = subparsers.add_parser('edit-recipe', help='Edit a recipe file',
                                           description='Runs the default editor (as specified by the EDITOR variable) on the specified recipe. Note that this will be quicker for recipes in the workspace as the cache does not need to be loaded in that case.',
                                           group='working')
      parser_edit_recipe.add_argument('recipename', help='Recipe to edit')
      # FIXME drop -a at some point in future
      parser_edit_recipe.add_argument('--any-recipe', '-a', action="store_true", help='Does nothing (exists for backwards-compatibility)')
      parser_edit_recipe.set_defaults(func=edit_recipe)
  
      # Find-recipe
      parser_find_recipe = subparsers.add_parser('find-recipe', help='Find a recipe file',
                                           description='Finds a recipe file. Note that this will be quicker for recipes in the workspace as the cache does not need to be loaded in that case.',
                                           group='working')
      parser_find_recipe.add_argument('recipename', help='Recipe to find')
      # FIXME drop -a at some point in future
      parser_find_recipe.add_argument('--any-recipe', '-a', action="store_true", help='Does nothing (exists for backwards-compatibility)')
      parser_find_recipe.set_defaults(func=find_recipe)
  
      # NOTE: Needed to override the usage string here since the default
      # gets the order wrong - recipename must come before --arg
      parser_configure_help = subparsers.add_parser('configure-help', help='Get help on configure script options',
                                           usage='devtool configure-help [options] recipename [--arg ...]',
                                           description='Displays the help for the configure script for the specified recipe (i.e. runs ./configure --help) prefaced by a header describing the current options being specified. Output is piped through less (or whatever PAGER is set to, if set) for easy browsing.',
                                           group='working')
      parser_configure_help.add_argument('recipename', help='Recipe to show configure help for')
      parser_configure_help.add_argument('-p', '--no-pager', help='Disable paged output', action="store_true")
      parser_configure_help.add_argument('-n', '--no-header', help='Disable explanatory header text', action="store_true")
      parser_configure_help.add_argument('--arg', help='Pass remaining arguments to the configure script instead of --help (useful if the script has additional help options)', nargs=argparse.REMAINDER)
      parser_configure_help.set_defaults(func=configure_help)
code_tokens: def register_commands ( subparsers , context ) : parser_edit_recipe = subparsers . add_parser ( 'edit-recipe' , help = 'Edit a recipe file' , description = 'Runs the default editor (as specified by the EDITOR variable) on the specified recipe. Note that this will be quicker for recipes in the workspace as the cache does not need to be loaded in that case.' , group = 'working' ) parser_edit_recipe . add_argument ( 'recipename' , help = 'Recipe to edit' ) parser_edit_recipe . add_argument ( '--any-recipe' , '-a' , action = "store_true" , help = 'Does nothing (exists for backwards-compatibility)' ) parser_edit_recipe . set_defaults ( func = edit_recipe ) parser_find_recipe = subparsers . add_parser ( 'find-recipe' , help = 'Find a recipe file' , description = 'Finds a recipe file. Note that this will be quicker for recipes in the workspace as the cache does not need to be loaded in that case.' , group = 'working' ) parser_find_recipe . add_argument ( 'recipename' , help = 'Recipe to find' ) parser_find_recipe . add_argument ( '--any-recipe' , '-a' , action = "store_true" , help = 'Does nothing (exists for backwards-compatibility)' ) parser_find_recipe . set_defaults ( func = find_recipe ) parser_configure_help = subparsers . add_parser ( 'configure-help' , help = 'Get help on configure script options' , usage = 'devtool configure-help [options] recipename [--arg ...]' , description = 'Displays the help for the configure script for the specified recipe (i.e. runs ./configure --help) prefaced by a header describing the current options being specified. Output is piped through less (or whatever PAGER is set to, if set) for easy browsing.' , group = 'working' ) parser_configure_help . add_argument ( 'recipename' , help = 'Recipe to show configure help for' ) parser_configure_help . add_argument ( '-p' , '--no-pager' , help = 'Disable paged output' , action = "store_true" ) parser_configure_help . add_argument ( '-n' , '--no-header' , help = 'Disable explanatory header text' , action = "store_true" ) parser_configure_help . add_argument ( '--arg' , help = 'Pass remaining arguments to the configure script instead of --help (useful if the script has additional help options)' , nargs = argparse . REMAINDER ) parser_configure_help . set_defaults ( func = configure_help )
short_docstring: Register devtool subcommands from this plugin
short_docstring_tokens: Register devtool subcommands from this plugin
comment: """Register devtool subcommands from this plugin"""$SEP$# FIXME drop -a at some point in future$SEP$# Find-recipe$SEP$# FIXME drop -a at some point in future$SEP$# NOTE: Needed to override the usage string here since the default$SEP$# gets the order wrong - recipename must come before --arg