In other tools too, like psql, you can pass a connection string with -d/--dbname, which is why I thought it would be best to use the same option for passing a connection string to pg_basebackup/pg_dumpall too.
Ah Ok. I was not aware that you can also pass a connection string to psql with -d option. That way it looks consistent though still confusing.