Repository: theskumar/python-dotenv

Issue:
dotenv get 'key' returns both key and value, not just key
When trying to get the value of a key in my `.env` file with `dotenv get` I am returned both key and value, despite the description for `dotenv get` saying it'll return the value:

```bash
17:42 # dotenv get --help
Usage: dotenv get [OPTIONS] KEY

  Retrieve the value for the given key.

Options:
  --help  Show this message and exit.
```

## Reproduction

```bash
# .env file
MY_KEY="my_value"
```

### Expected

```bash
dotenv get MY_KEY
my_value
```

### Actual

```bash
dotenv get MY_KEY
MY_KEY=my_value
```

Discussion:

Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5a5b276..8969b4c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
 ## [Unreleased]
 
+### Changed
+
+- Make `dotenv get <key>` only show the value, not `key=value` (#313 by [@bbc2]).
+
 ### Added
 
 - Add `--override`/`--no-override` option to `dotenv run` (#312 by [@zueve] and [@bbc2]).
diff --git a/src/dotenv/cli.py b/src/dotenv/cli.py
index 51f25e8..bb96c02 100644
--- a/src/dotenv/cli.py
+++ b/src/dotenv/cli.py
@@ -85,7 +85,7 @@ def get(ctx, key):
         )
     stored_value = get_key(file, key)
     if stored_value:
-        click.echo('%s=%s' % (key, stored_value))
+        click.echo(stored_value)
     else:
         exit(1)
 


Test patch:
diff --git a/tests/test_cli.py b/tests/test_cli.py
index a048ef3..b21725c 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -35,7 +35,7 @@ def test_get_existing_value(cli, dotenv_file):
 
     result = cli.invoke(dotenv_cli, ['--file', dotenv_file, 'get', 'a'])
 
-    assert (result.exit_code, result.output) == (0, "a=b\n")
+    assert (result.exit_code, result.output) == (0, "b\n")
 
 
 def test_get_non_existent_value(cli, dotenv_file):
@@ -124,7 +124,7 @@ def test_get_default_path(tmp_path):
 
     result = sh.dotenv("get", "a")
 
-    assert result == "a=b\n"
+    assert result == "b\n"
 
 
 def test_run(tmp_path):