Skip to content

fix: add dataset short flag for publish-images#8

Open
NikkeTryHard wants to merge 1 commit intoAfterQuery:mainfrom
NikkeTryHard:fix-publish-images-dataset-short-flag
Open

fix: add dataset short flag for publish-images#8
NikkeTryHard wants to merge 1 commit intoAfterQuery:mainfrom
NikkeTryHard:fix-publish-images-dataset-short-flag

Conversation

@NikkeTryHard
Copy link
Copy Markdown

@NikkeTryHard NikkeTryHard commented Apr 6, 2026

This adds the missing -d alias for publish-images so it matches the docs.

I kept the diff to one line and checked that both -d and --dataset go through the same publish flow locally.

Fixes #3

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 6, 2026

📝 Walkthrough

Walkthrough

This PR adds a short flag -d as an alias for the existing --dataset CLI option in the publish_images function, allowing users to specify the dataset ID using either the long form or short form.

Changes

Cohort / File(s) Summary
CLI Option Enhancement
src/anvil/publish.py
Added short flag -d as an alias for the --dataset option in the publish_images function's dataset_id parameter.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A flag so swift, a dash so fine,
Now -d and --dataset both align!
Type less, do more, the CLI's delight,
Short flags make scripting faster and tight! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fix: add dataset short flag for publish-images' clearly and concisely describes the main change: adding a short flag -d alias to the dataset option in the publish-images command.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(cli): add missing short flag -d for --dataset option

1 participant