Эх сурвалжийг харах

update doc string in get_ids

oz123 11 жил өмнө
parent
commit
91502b9ca7

+ 2 - 0
pwman/tests/db_tests.py

@@ -158,3 +158,5 @@ class CLITests(unittest.TestCase):
         # the second was added just now.
         # This will pass only when running all the tests than ...
         self.assertEqual(len(rows), 2)
+
+    #TODO: implement a test for get_ids

+ 5 - 0
pwman/ui/cli.py

@@ -73,6 +73,11 @@ class PwmanCliOld(cmd.Cmd, HelpUI, BaseUI):
         return True
 
     def get_ids(self, args):
+        """
+        Command can get a single ID or
+        a range of IDs, with begin-end.
+        e.g. 1-3 , will get 1 to 3.
+        """
         ids = []
         rex = re.compile(r"^(\d+)-(\d+)$")
         idstrs = args.split()