Skip to content

[v3] [cli] Allow one or more positional path args - #1967

Merged
jameshadfield merged 3 commits into
v3from
james/cli-path-improvements
Jun 29, 2026
Merged

[v3] [cli] Allow one or more positional path args#1967
jameshadfield merged 3 commits into
v3from
james/cli-path-improvements

Conversation

@jameshadfield

Copy link
Copy Markdown
Member

The previous interface was slightly cumbersome - I often found myself wanting to source both datasets & narratives from some directory X and having to type in the rather long --datasetDir X --narrativeDir X, and often I'd misspell / pluralise the argument names; using a simple positional argument X is much nicer. The ability to use multiple directories is also functionality I've long wanted.

The previous CLI interface is preserved in its entirety for backwards compatibility and is mutually exclusive with the new positional-args style.

@nextstrain-bot
nextstrain-bot temporarily deployed to auspice-james-cli-path--3lg6xh May 26, 2025 23:57 Inactive
@jameshadfield
jameshadfield requested a review from victorlin May 27, 2025 21:05
Base automatically changed from victorlin/build-cli-improvements to master May 27, 2025 21:07
@jameshadfield
jameshadfield force-pushed the james/cli-path-improvements branch from 5e77e9d to 3bf1f72 Compare August 11, 2025 04:25
@jameshadfield jameshadfield mentioned this pull request Jun 2, 2026
@jameshadfield
jameshadfield force-pushed the james/cli-path-improvements branch from 3bf1f72 to 364a170 Compare June 4, 2026 09:41
@jameshadfield
jameshadfield changed the base branch from master to v3 June 8, 2026 07:00
@jameshadfield
jameshadfield force-pushed the james/cli-path-improvements branch from 364a170 to ab795ed Compare June 9, 2026 01:02
@jameshadfield jameshadfield changed the title [cli] Allow one or more positional path args [v3] [cli] Allow one or more positional path args Jun 9, 2026
@jameshadfield

Copy link
Copy Markdown
Member Author

Will close #1528

@jameshadfield

Copy link
Copy Markdown
Member Author

Closes #1855 (in addition to an already-merged PR)

jameshadfield and others added 3 commits June 30, 2026 11:15
The previous interface was slightly cumbersome - I often found myself
wanting to source both datasets & narratives from some directory X and
having to type in the rather long `--datasetDir X --narrativeDir X`,
and often I'd misspell / pluralise the argument names; using a simple
positional argument `X` is much nicer. The ability to use multiple
directories is also functionality I've long wanted.

The previous CLI interface is preserved in its entirety for backwards
compatibility and is mutually exclusive with the new positional-args
style.
Stands up the default getDataset handler on an ephemeral port and makes
real HTTP requests against the JSONs in test/fetched-jsons, covering both
the main (v2) dataset and the tip-frequencies sidecar.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jameshadfield
jameshadfield force-pushed the james/cli-path-improvements branch from ab795ed to fbc6283 Compare June 29, 2026 23:39
@jameshadfield
jameshadfield merged commit cb5fa3c into v3 Jun 29, 2026
18 checks passed
@jameshadfield
jameshadfield deleted the james/cli-path-improvements branch June 29, 2026 23:45
jameshadfield added a commit that referenced this pull request Jul 10, 2026
[v3] [cli] Allow one or more positional path args
jameshadfield added a commit that referenced this pull request Jul 13, 2026
[v3] [cli] Allow one or more positional path args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants