citadel/meta-selftest/lib/devtool/test.py
brl 098b8f982b Squashed 'poky/' content from commit 4469acdf1d
git-subtree-dir: poky
git-subtree-split: 4469acdf1d0338220f3fe2ecb5e079eea6fda375
2017-12-04 16:35:29 -05:00

12 lines
529 B
Python

import argparse
def selftest_reverse(args, config, basepath, workspace):
"""Reverse the value passed to verify the plugin is executing."""
print(args.value[::-1])
def register_commands(subparsers, context):
parser_build = subparsers.add_parser('selftest-reverse', help='Reverse value (for selftest)',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser_build.add_argument('value', help='Value to reverse')
parser_build.set_defaults(func=selftest_reverse)