Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.23 KB

README.md

File metadata and controls

48 lines (33 loc) · 1.23 KB

Morse Translator CLI

The Morse Translator CLI is a simple command-line tool designed to help you easily encode and decode Morse code messages. Whether you need to send or receive Morse code, this tool makes the process straightforward and efficient.

Installation

To install the Morse Translator CLI, you will need to have Python and pip installed on your system. Run this command:

pip install -i https://test.pypi.org/simple/ morse-translator

It is important to note that this package is published on TestPyPI.

Usage

The Morse Translator CLI provides two main options: --encode and --decode.

To encode a text message into Morse code, use the following command:

morse_translator --encode "Text message here"

To decode a Morse code into readable text, use the following command:

morse_translator --decode "Morse code here"

To see all options, use the following command:

morse_translator --help

Examples

Encoding a Text Message

$ morse_translator --encode "Hello, World!"
.... . .-.. .-.. --- --..-- / .-- --- .-. .-.. -.. -.-.-- 

Decoding Morse Code

$ morse_translator --decode ".... . .-.. .-.. --- --..-- / .-- --- .-. .-.. -.. -.-.--"
HELLO, WORLD!