Repository: nickstenning/honcho

Issue:
Dashes in process types
I believe that process types, according to this [Heroku page](https://devcenter.heroku.com/articles/procfile), must be alphanumeric.

If I create a Procfile with the following content

```
process-type-with-dashes: python -c 'print("hello")'
```

and then run `honcho start`, honcho fails silently.

Also, when I run `honcho check`, it says it is a valid Procfile.

Perhaps it would be helpful if:
- `honcho start` would complain if there is an invalid Procfile
- `honcho check` complains if the process types have dashes

I am using honcho v1.0.1 with python 3.7.0 on macOS.

Thank you for all of your work, I wish I had time to create a PR for this, but I figured creating an issue was better than nothing.

Discussion:
nickstenning: Thanks! This LGTM. The build is failing because I need to remove support for Python 2.6, but I'm going to go ahead and merge this as everything other than 2.6 is passing.
nickstenning: Actually just spotted one change (to the text of the docs) and if you could make that change and rebase on master that would be fab.
nickstenning: Great, thanks! LGTM.

Patch:
diff --git a/doc/using_procfiles.rst b/doc/using_procfiles.rst
index 02cd95b..d11dc91 100644
--- a/doc/using_procfiles.rst
+++ b/doc/using_procfiles.rst
@@ -18,10 +18,10 @@ source tree that contains zero or more lines of the form::
 
     <process type>: <command>
 
-The ``process type`` is a string which may contain alphanumerics and underscores
-(``[A-Za-z0-9_]+``), and uniquely identifies one type of process which can be
-run to form your application. For example: ``web``, ``worker``, or
-``my_process_123``.
+The ``process type`` is a string which may contain alphanumerics as well as
+underscores and dashes (``[A-Za-z0-9_-]+``), and uniquely identifies one type
+of process which can be run to form your application. For example: ``web``,
+``worker``, or ``my_process_123``.
 
 ``command`` is a shell commandline which will be executed to spawn a process of
 the specified type.
diff --git a/honcho/environ.py b/honcho/environ.py
index 646d950..09448f3 100644
--- a/honcho/environ.py
+++ b/honcho/environ.py
@@ -13,7 +13,7 @@ if compat.ON_WINDOWS:
     import ctypes
 
 
-PROCFILE_LINE = re.compile(r'^([A-Za-z0-9_]+):\s*(.+)$')
+PROCFILE_LINE = re.compile(r'^([A-Za-z0-9_-]+):\s*(.+)$')
 
 
 class Env(object):


Test patch:
diff --git a/tests/test_environ.py b/tests/test_environ.py
index c7260a4..a9720d7 100644
--- a/tests/test_environ.py
+++ b/tests/test_environ.py
@@ -155,10 +155,17 @@ def test_environ_parse(content, commands):
     [
         # Invalid characters
         """
-        -foo: command
+        +foo: command
         """,
         {}
     ],
+    [
+        # Valid -/_ characters
+        """
+        -foo_bar: command
+        """,
+        {'-foo_bar': 'command'}
+    ],
     [
         # Shell metacharacters
         """