diff options
| author | Jon Stanley <jonstanley@gmail.com> | 2009-12-09 23:43:41 -0500 |
|---|---|---|
| committer | Jon Stanley <jonstanley@gmail.com> | 2009-12-09 23:43:41 -0500 |
| commit | 9e15ed21337ca8702f8466ff73c83223e36985ec (patch) | |
| tree | 32425f13fa47ebaa05105ad1fce8b1d6fc11df0b | |
| parent | 56d5fba149e95ccfb07f185a3778d22260454a50 (diff) | |
| download | cvssetfacl-9e15ed21337ca8702f8466ff73c83223e36985ec.tar.gz cvssetfacl-9e15ed21337ca8702f8466ff73c83223e36985ec.tar.xz cvssetfacl-9e15ed21337ca8702f8466ff73c83223e36985ec.zip | |
Fix some errors in option parsing error handling
- Change to actually exit when an invalid condition exists
-- Both the -a and pkgs and -a and no pkgs were fixed
| -rwxr-xr-x | setacls.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -180,10 +180,12 @@ def main(): pkgs[pkg] = parsed if not options.all and not args: - sys.stderr.write('either the -a option or some packages must be given') + sys.stderr.write('either the -a option or some packages must be given\n') + sys.exit(1) if options.all and args: - sys.stderr.write('You cannot specify both -a and a list of packages') + sys.stderr.write('You cannot specify both -a and a list of packages\n') + sys.exit(1) if options.all: acl_list = get_all() |
