code: def parse_args(self, *args, **kwargs):
          
          args = super(SatUtilsParser, self).parse_args(*args, **kwargs)
          args = vars(args)
          args = {k: v for k, v in args.items() if v is not None}
  
          if args.get('command', None) is None:
              self.print_help()
              sys.exit(0)
  
          # set logging level
          if 'verbosity' in args:
              logging.basicConfig(stream=sys.stdout, level=(50-args.pop('verbosity') * 10))
  
          # set global configuration options
          if 'url' in args:
              config.API_URL = args.pop('url')
          if 'datadir' in args:
              config.DATADIR = args.pop('datadir')
          if 'filename' in args:
              config.FILENAME = args.pop('filename')
  
          return args
docs: Parse arguments