Last change
on this file since 2975 was
2473,
checked in by pweaver, 15 years ago
|
lp invert bug 349789
Added error codes and prints to stderr
|
-
Property svn:executable set to
*
|
File size:
267 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | """ |
---|
3 | Returns an error when someone enters an invalid vm name. |
---|
4 | """ |
---|
5 | import sys |
---|
6 | |
---|
7 | def main(args): |
---|
8 | print >>sys.stderr, 'Error: no such machine: ' + args[0] |
---|
9 | return 1 |
---|
10 | |
---|
11 | if __name__ == '__main__': |
---|
12 | sys.exit(main(sys.argv[1:])) |
---|
13 | |
---|
14 | # vim:et:sw=4:ts=4 |
---|
Note: See
TracBrowser
for help on using the repository browser.