From 493c26a8d47dfa31d4777c1e5574c621365e5308 Mon Sep 17 00:00:00 2001 From: Joel Galenson Date: Mon, 18 Oct 2021 15:54:41 -0700 Subject: [PATCH] Document the expectations of two arguments. To work with the updater, these files must have a certain prefix. Test: Run with --help and upgrade a crate. Change-Id: Icdc492479223865c39d6c6f10b84fe3d762f5d1d --- scripts/cargo2android.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/cargo2android.py b/scripts/cargo2android.py index 7abf897b2..fdd5188aa 100755 --- a/scripts/cargo2android.py +++ b/scripts/cargo2android.py @@ -1749,11 +1749,13 @@ def get_parser(): parser.add_argument( '--add-toplevel-block', type=str, - help='Add the contents of the given file to the top level of the Android.bp.') + help=('Add the contents of the given file to the top level of the Android.bp. ' + + 'The filename should start with cargo2android to work with the updater.')) parser.add_argument( '--add-module-block', type=str, - help='Add the contents of the given file to the main module.') + help=('Add the contents of the given file to the main module. '+ + 'The filename should start with cargo2android to work with the updater.')) parser.add_argument( '--verbose', action='store_true',