diff --git a/samcli/__main__.py b/samcli/__main__.py index 6b8d9261ce..89a662cc32 100644 --- a/samcli/__main__.py +++ b/samcli/__main__.py @@ -7,4 +7,6 @@ from samcli.cli.main import cli if __name__ == "__main__": - cli() + # NOTE(TheSriram): prog_name is always set to "sam". This way when the CLI is invoked as a module, + # the help text that is generated still says "sam" instead of "__main__". + cli(prog_name="sam")