Commits

Benjamin Althues committed ac2f9f8

Handle ambiguity of 'dispass g'

Comments (0)

Files changed (1)

         elif self.args[0][0] == 'a':
             cmd = commands.add.Command(settings=settings, argv=self.args[1:])
         elif self.args[0][0] == 'g':
+            if len(self.args[0]) < 2:
+                print("Ambiguous subcommand, please be more specific:")
+                print("    dispass [ge]nerate")
+                print("    dispass [gu]i")
+                return 1
             if self.args[0][1] == 'e':
                 cmd = commands.generate.Command(settings=settings,
                                                 argv=self.args[1:])