2 files changed
+8
-0
lines changedLines changed: 2 additions & 0 deletions
@@ -1755,6 +1755,8 @@ def do_alias(self, arg):
1755
1755
return
1756
1756
if args[0] in self.aliases and len(args) == 1:
1757
1757
self.message("%s = %s" % (args[0], self.aliases[args[0]]))
1758
+ elif len(args) == 1:
1759
+ self.error("Unkown alias. To create an alias see 'help alias'")
1758
1760
else:
1759
1761
self.aliases[args[0]] = ' '.join(args[1:])
1760
1762
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
664 | 664 |
| |
665 | 665 |
| |
666 | 666 |
| |
| 667 | + | |
667 | 668 |
| |
668 | 669 |
| |
| 670 | + | |
669 | 671 |
| |
670 | 672 |
| |
671 | 673 |
| |
| |||
674 | 676 |
| |
675 | 677 |
| |
676 | 678 |
| |
| 679 | + | |
| 680 | + | |
677 | 681 |
| |
678 | 682 |
| |
| 683 | + | |
| 684 | + | |
679 | 685 |
| |
680 | 686 |
| |
681 | 687 |
| |
|
0 commit comments