tools: make tuhi-live --verbose actually work

The argparser in tuhi.base.main() drops argv[0], so we have to add a fake
argument here.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2019-08-29 11:00:23 +10:00
parent bffe41fbb6
commit 2d95848cee
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ def maybe_start_tuhi(queue):
sys.path.append(os.getcwd())
import tuhi.base
args = []
args = ['tuhi-live'] # argparse in tuhi.base.main skips argv[0]
if verbose:
args.append('--verbose')