Command line options in Dgraph should be in --kebab-case

It’s somewhat surprising to me the Dgraph CLI uses --snake_case instead of --kebab-case for arguments:

This would not be a breaking change - if we decided to shift, we could simply alias the snake case options. This is not uncommon - for example, the angular-cli --help page documents arguments as --kebab-case, but it silently supports the same arguments supplied as --camelCase.

2 Likes

When I first started using Dgraph I was also surprised by the flag names with underscores instead of hyphens. If we can alias them, that’d be great.

1 Like