Преглед на файлове

Add support for completing "-" in names. Fixes #218

Mike Naberezny преди 11 години
родител
ревизия
cfef44efaa
променени са 2 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 3 0
      CHANGES.txt
  2. 1 0
      supervisor/supervisorctl.py

+ 3 - 0
CHANGES.txt

@@ -38,6 +38,9 @@
   name like "group:*" would cause a 500 Internal Server Error rather than
   returning a BAD_NAME fault.
 
+- Tab completion in ``supervisorctl`` has been improved and now works for
+  more cases.  Thanks to Mathieu Longtin for the initial patch.
+
 3.0 (2013-07-30)
 ----------------
 

+ 1 - 0
supervisor/supervisorctl.py

@@ -1161,6 +1161,7 @@ def main(args=None, options=None):
             import readline
             delims = readline.get_completer_delims()
             delims = delims.replace(':', '') # "group:process" as one word
+            delims = delims.replace('-', '') # names with "-" as one word
             readline.set_completer_delims(delims)
 
             if options.history_file: