fix(nebula-cert): flag duration is optional, so reflect this is the cli help (#117)
* fix: nebula-cert duration is optional, so reflect this is the cli help nebula-cert sign defaults the duration flag to 1 second before the CA expires, so it is not required to be provided. * tests: Fix test for duration flag help message * nebula-cert: add duration default value hint
This commit is contained in:
@ -32,7 +32,7 @@ func Test_signHelp(t *testing.T) {
|
||||
" -ca-key string\n"+
|
||||
" \tOptional: path to the signing CA key (default \"ca.key\")\n"+
|
||||
" -duration duration\n"+
|
||||
" \tRequired: how long the cert should be valid for. Valid time units are seconds: \"s\", minutes: \"m\", hours: \"h\"\n"+
|
||||
" \tOptional: how long the cert should be valid for. The default is 1 second before the signing cert expires. Valid time units are seconds: \"s\", minutes: \"m\", hours: \"h\"\n"+
|
||||
" -groups string\n"+
|
||||
" \tOptional: comma separated list of groups\n"+
|
||||
" -in-pub string\n"+
|
||||
|
Reference in New Issue
Block a user