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

improve argument parsing and remove --file #31

Merged
merged 3 commits into from
Aug 23, 2020
Merged

improve argument parsing and remove --file #31

merged 3 commits into from
Aug 23, 2020

Conversation

aligator
Copy link
Owner

the file has to be passed directly now

the file has to be passed directly now
@aligator aligator requested a review from dominikbraun August 23, 2020 13:30
data/option.go Outdated
flag.Usage = func() {
_, _ = fmt.Fprintf(os.Stderr, "Usage of goslice: goslice STL_FILE [flags]\n")
flag.PrintDefaults()
os.Exit(1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Personally, I'd move os.Exit(1) out to where Usage is called as I wouldn't necessarily expect Usage to quit my program.

@aligator aligator requested a review from dominikbraun August 23, 2020 13:39
Copy link
Collaborator

@dominikbraun dominikbraun left a comment

Choose a reason for hiding this comment

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

LGTM

@aligator aligator merged commit 5eb9839 into master Aug 23, 2020
@aligator aligator deleted the flags branch August 23, 2020 13:43
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