Skip to content

Comments

feat: move all the args to the end#2369

Merged
adamspofford-dfinity merged 15 commits intomasterfrom
spofford/rearrange-args
Aug 4, 2022
Merged

feat: move all the args to the end#2369
adamspofford-dfinity merged 15 commits intomasterfrom
spofford/rearrange-args

Conversation

@adamspofford-dfinity
Copy link
Contributor

The standard format of commands is cmd subcmd1 subcmd2 --namedflag1 --namedflag2. In dfx, it is instead cmd --namedflag1 subcmd1 --namedflag2 subcmd2. This is a source of confusion for new users and experienced users alike. This PR moves all the flags to the end of the command; the new valid syntax is dfx canister create --all --identity alice --network ic --wallet "$WALLET".

Implements SDK-604.

Fixes #835.

@adamspofford-dfinity adamspofford-dfinity marked this pull request as ready for review July 22, 2022 17:41
@adamspofford-dfinity adamspofford-dfinity requested a review from a team as a code owner July 22, 2022 17:41
@adamspofford-dfinity adamspofford-dfinity enabled auto-merge (squash) August 4, 2022 16:23
@adamspofford-dfinity adamspofford-dfinity merged commit f038219 into master Aug 4, 2022
@adamspofford-dfinity adamspofford-dfinity deleted the spofford/rearrange-args branch August 4, 2022 23:24
mergify bot pushed a commit that referenced this pull request Aug 31, 2022
#2369 moved flags to a more traditional location, but in doing so broke scripts, as well as making the code worse. This enables both behaviors with code closer to the original.
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 the awkward syntax for dfx commands

1 participant