Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor command line parameters #17

Merged
merged 2 commits into from
Jul 30, 2019
Merged

Refactor command line parameters #17

merged 2 commits into from
Jul 30, 2019

Conversation

nickng
Copy link
Collaborator

@nickng nickng commented Jul 28, 2019

Move test helpers to its own package so base don't pull in testing and hide command line parameters from test parameters.
This change also make -h more useful, showing all the different modes of input (FG/FGG/internal/inline)

Usage:

	fgg [options] -fg  path/to/file.fg
	fgg [options] -fgg path/to/file.fgg
	fgg [options] -internal
	fgg [options] -inline "package main; type ...; func main() { ... }"

Options:
        ....

This makes command line parameters less noisy because base pulls in the
testing package as dependency
@nickng nickng merged commit d335dd6 into master Jul 30, 2019
@nickng nickng deleted the cli-refactor branch July 30, 2019 00:27
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.

None yet

1 participant