summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/cmd2.py')
-rwxr-xr-xcmd2/cmd2.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index ad2038d4..401d2046 100755
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -2434,13 +2434,6 @@ Usage: Usage: alias [name] | [<name> <value>]
name = arglist[0]
value = ' '.join(arglist[1:])
- # Check for a valid name
- for cur_char in name:
- if cur_char not in self.identchars:
- self.perror("Alias names can only contain the following characters: {}".format(self.identchars),
- traceback_war=False)
- return
-
# Set the alias
self.aliases[name] = value
self.poutput("Alias {!r} created".format(name))