Skip to content

Pseudo flag fixes#144

Merged
codegaze merged 1 commit intodevelfrom
pseudo-fixes
Nov 29, 2022
Merged

Pseudo flag fixes#144
codegaze merged 1 commit intodevelfrom
pseudo-fixes

Conversation

@codegaze
Copy link
Contributor

  • Abort when source is used with pseudo
  • Pass pseudo fix for local files

@codegaze codegaze force-pushed the pseudo-fixes branch 2 times, most recently from e1843c7 to dc3b13b Compare November 25, 2022 15:31
Comment on lines +377 to +380
if args.Pseudo {
sendMessage("Pseudo doesn't make sense for source files, skipping", false)
return
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe put this check on cmd/main.go?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kbairak I wouldn't want to stop the whole process if someone added -s in the command along with others.

  • If pseudo and source flags are there just ignore for source.

Does that make sense?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does, however, when you say tx pull -s -l fr we say that it doesn't make sense to have source with languages at the same time and abort the operation. I think it's better to let them know that they are doing something wrong instead of letting them think that their flags are taken into consideration and then have them discover that the results are not what they originally expected. Does this make sense?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes yes, makes sense. Moved the condition to main :)

* Abort when source is used with pseudo
* Pass `pseudo` fix for local files
@codegaze codegaze merged commit 4a01798 into devel Nov 29, 2022
@codegaze codegaze deleted the pseudo-fixes branch November 29, 2022 08:51
@codegaze codegaze mentioned this pull request Nov 29, 2022
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.

2 participants