Skip to content

Commit

Permalink
fix: added cli help messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Almas-Ali committed May 26, 2024
1 parent ea42ac3 commit 2f8017d
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion radon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
'''
)


Expand Down

0 comments on commit 2f8017d

Please sign in to comment.