-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
influxd binary needs better command-line parameter help #6805
Comments
I implemented this in a PR, but I would like us to consider using something other than Go's default command line parser in the future. I'm of the opinion that the Go command line parser is very user unfriendly since it uses almost no established standard and instead sets a new standard. The Docker project did something similar when they started getting towards 1.0. |
@jsternberg You're right that the Go flag parser is nonstandard, as Rob Pike pointed out:
I'd be thrilled if we could get on Unix style flags, but is that a breaking change? Can we do that before 1.0 final? |
We can do what Docker did and accept both, but it's more work than I'd like at the moment which is why I haven't done it. I'll mess around with it in my free time to see how difficult it would be. |
The problems mentioned in this issue were fixed with a couple of different PRs. One of them is #6811. I think there are a few other PRs that fixed the help messages and made the formatting consistent, but I can't find the exact PR numbers. |
Also #7052 has an implementation for switching our binaries to use posix flags. |
This patch implements the window pushdown for aggregate counts. Fixes #6805
This patch implements the window pushdown for aggregate counts. Fixes influxdata#6805
This patch implements the window pushdown for aggregate counts. Fixes influxdata#6805
This patch implements the window pushdown for aggregate counts. Fixes #6805
This patch implements the window pushdown for aggregate counts. Fixes #6805
This patch implements the window pushdown for aggregate counts. Fixes #6805
This patch implements the window pushdown for aggregate counts. Fixes influxdata#6805
This patch implements the window pushdown for aggregate counts. Fixes influxdata#6805
This patch implements the window pushdown for aggregate counts. Fixes #6805
Feature Request
Proposal: [Description of the feature]
Calling
influxd
with an unrecognized switch should point users to theinfluxd help
subcommand.Also, the current list of switches/flags is partially incorrect.
Current behavior: [What currently happens]
To get the subcommands you must run
influxd help
, no flag:Desired behavior: [What you would like to happen]
The above switch output mentions
-join
, which in the post 0.12 world is likely deprecated or removed. It also doesn't mention thehelp
command, which is the only way to find out about subcommands likeversion
orbackup
.Use case: [Why is this important (helps with prioritizing requests)]
It's impossible to remember every switch and flag to every binary, and naive POSIX users like me rely on being able to get a reminder output from the binary with something like
influxd -?
orinfluxd --help
. I get output from those that is incomplete, because instead I must runinfluxd help
, which isn't mentioned in the seemingly complete output frominfluxd -?
The text was updated successfully, but these errors were encountered: