Add new arg "--update-config" to update user config.
Bug: 152727427
Test: acloud-dev setup --update-config stable_host_image_family acloud-release
Change-Id: I671959621d6bcab7f24097a33d3c33acbb9cb76a
diff --git a/setup/setup_args.py b/setup/setup_args.py
index e3df4de..4190223 100644
--- a/setup/setup_args.py
+++ b/setup/setup_args.py
@@ -60,5 +60,14 @@
dest="force",
required=False,
help="Force the setup steps even if it's not required.")
+ # TODO(157532869): Validate the field name.
+ setup_parser.add_argument(
+ "--update-config",
+ nargs=2,
+ dest="update_config",
+ required=False,
+ help="Update the acloud user config. The first arg is field name in "
+ "config, and the second arg is the value of the field. Command would "
+ "like: 'acloud setup --config stable_host_image_family acloud-release'")
return setup_parser