From 2f8017d9fb3161865fd7372d650c1669baa0ecf1 Mon Sep 17 00:00:00 2001 From: "Md. Almas Ali" Date: Sun, 26 May 2024 18:13:13 +0600 Subject: [PATCH] fix: added cli help messages. --- radon.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/radon.py b/radon.py index 1bc92a6..0682844 100755 --- a/radon.py +++ b/radon.py @@ -62,7 +62,25 @@ def shell() -> None: def usage(program_name: str, stream: IO[str]) -> None: print( f"Usage: {program_name} [--source | -s] [--command | -c] [source_file] [--version | -v] [--help | -h]", - file=stream, + file=stream) + print( + ''' +Options and arguments: + --source | -s Run a source file + --command | -c Run a command + --version | -v Print the version + --help | -h Print this help message + + If no arguments are provided, the program will run in shell mode. + +Example: + radon --source source_file.rn + radon --command 'print("Hello, World!")' + radon --version + radon --help + +The Radon Programming Language. + ''' )