backup: Display general help on -help
authorAndrew Deason <adeason@sinenomine.net>
Tue, 5 Nov 2013 17:00:21 +0000 (11:00 -0600)
committerDerrick Brashear <shadow@your-file-system.com>
Thu, 7 Nov 2013 12:20:50 +0000 (04:20 -0800)
commitdc4384653fed48104016a0e00fc2487851eb6806
tree3f63cec2810131ee5209e75b6aa2e969533b1eeb
parentc870513c5ec576a966f97cd2ab92c900dcbe4410
backup: Display general help on -help

Currently, 'backup' tries to guess if we are running 'backup
interactive' before libcmd actually parses our arguments. This is
tricky, since we run 'backup interactive' if no explicit subcommand is
actually given. One consequence of this is that currently, running
'backup -help' just displays the help for the 'backup interactive'
command, not the help output for 'backup' itself.

The current heuristics for guessing at whether we are running 'backup
interactive' or not are a bit fishy, but at least for now, just make
sure -help works. This should still ensure any other behavior is
unchanged, but just 'backup -help' now works like other command
suites.

Change-Id: I31ecbcad7efffd301d23f109c66eee0417882a90
Reviewed-on: http://gerrit.openafs.org/10439
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/bucoord/main.c