code: def cli(ctx, verbose, fake, install, uninstall, config):
      
      # Create a repo object and remember it as as the context object.  From
      # this point onwards other commands can refer to it by using the
      # @pass_scm decorator.
      ctx.obj = SCMRepo()
      ctx.obj.fake = fake
      ctx.obj.verbose = fake or verbose
  
      if install:
          do_install(ctx, verbose, fake)
          ctx.exit()
      elif uninstall:
          do_uninstall(ctx, verbose, fake)
          ctx.exit()
      elif config:
          do_edit_settings(fake)
          ctx.exit()
      else:
          if ctx.invoked_subcommand is None:
              # Display help to user if no commands were passed.
              click.echo(format_help(ctx.get_help()))
docs: legit command line interface