Print experiment in output so incorrect usage like passing just a username instead of experiment name is easier to recognize (#23043)

This commit is contained in:
Ben Holt
2020-02-20 10:49:56 -05:00
committed by GitHub
parent 08269e8367
commit e1e0258554

View File

@@ -65,7 +65,13 @@ def main(args, env):
if abbrev is None:
abbrev = abbreviate(my_args.exp)
print("{user} is in bucket: {bucket}".format(user=my_args.user, bucket=bucket))
print(
"For experiment {exp}, {user} is in bucket: {bucket}".format(
exp=my_args.exp,
user=my_args.user,
bucket=bucket,
)
)
if my_args.print_args:
print("* Args:\n\t{my_args}\n* Computed:\n\tdigest: {digest} - hash: {hashed} - {abbrev}".format(**vars()))
return 0