Changeset - c8000a8a747c
[Not reviewed]
0 1 0
Brett Smith - 7 years ago 2017-05-19 14:21:33
brettcsmith@brettcsmith.org
config: Print usage if no subcommand is given.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
oxrlib/config.py
Show inline comments
...
 
@@ -40,6 +40,9 @@ class Configuration:
 
            if read_path != expected_path:
 
                self.error("failed to read configuration file {!r}".format(expected_path))
 

	
 
        if not hasattr(self.args, 'command'):
 
            argparser.print_help()
 
            exit(2)
 
        try:
 
            post_hook = getattr(self, '_post_hook_' + self.args.command)
 
        except AttributeError:
0 comments (0 inline, 0 general)