Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Zipstack/unstract-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: Zipstack/unstract-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix/global-flags-anywhere
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 5 commits
  • 2 files changed
  • 2 contributors

Commits on Sep 18, 2026

  1. [FIX] Accept the global output flags anywhere on the command line

    `-o/--output`, `--agent`, `-q/--quiet` and `-v/--verbose` live on the root
    group, so Click rejected them once the subcommand name had been read:
    `unstract whisper extract invoice.pdf -o raw` failed with
    `No such option '-o'`, which is the form the README and docs show.
    
    The entry point now moves those tokens ahead of the subcommand before Click
    parses, preserving their relative order, stopping at `--`. `-p/--profile` is
    left alone on purpose: `config set` and `auth login` declare their own.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014MQhP8Rvn5JDXewaAPbn8Z
    chandrasekharan-zipstack and claude committed Sep 18, 2026
    Configuration menu
    Copy the full SHA
    942c241 View commit details
    Browse the repository at this point in the history
  2. [FIX] Hoist --config with the other root options

    `--config` is root-only as well, so it failed after the subcommand the same
    way `-o` did.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014MQhP8Rvn5JDXewaAPbn8Z
    chandrasekharan-zipstack and claude committed Sep 18, 2026
    Configuration menu
    Copy the full SHA
    f0a7faa View commit details
    Browse the repository at this point in the history
  3. [FIX] Hoist -qvo clusters and reject a dangling valued option

    A short cluster ending in `-o` is a valid root spelling, so it is hoisted
    with its value like a bare `-o`. A valued option with nothing after it is
    refused up front: hoisted alone it would take the subcommand name as its
    value and fail with a misleading message.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014MQhP8Rvn5JDXewaAPbn8Z
    chandrasekharan-zipstack and claude committed Sep 18, 2026
    Configuration menu
    Copy the full SHA
    0f400fb View commit details
    Browse the repository at this point in the history
  4. [FIX] Read a joined -ojson in the pre-parse format scan

    A failure raised before Click parses renders in the format guessed from
    argv, and that guess only understood `-o json`, so `-ojson` fell back to a
    table envelope.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014MQhP8Rvn5JDXewaAPbn8Z
    chandrasekharan-zipstack and claude committed Sep 18, 2026
    Configuration menu
    Copy the full SHA
    51a370a View commit details
    Browse the repository at this point in the history
  5. [FIX] Stop the pre-parse format scan at --

    Everything after the separator is positional data, so it must not pick
    the envelope format either.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014MQhP8Rvn5JDXewaAPbn8Z
    chandrasekharan-zipstack and claude committed Sep 18, 2026
    Configuration menu
    Copy the full SHA
    6071801 View commit details
    Browse the repository at this point in the history
Loading