1673
1675
This is also a non-master option.
1674
1676
--help Run help and exit, also a non-master option (I think that should stay, though)
1676
>>> argv, opts = _parse_master_args(['bzr', '--test'])
1678
>>> argv, opts = _parse_master_args(['--test'])
1677
1679
Traceback (most recent call last):
1679
1681
BzrCommandError: Invalid master option: 'test'
1680
>>> argv, opts = _parse_master_args(['bzr', '--version', 'command'])
1682
>>> argv, opts = _parse_master_args(['--version', 'command'])
1683
1685
>>> print opts['version']
1685
>>> argv, opts = _parse_master_args(['bzr', '--profile', 'command', '--more-options'])
1687
>>> argv, opts = _parse_master_args(['--profile', 'command', '--more-options'])
1687
1689
['command', '--more-options']
1688
1690
>>> print opts['profile']
1690
>>> argv, opts = _parse_master_args(['bzr', '--no-plugins', 'command'])
1692
>>> argv, opts = _parse_master_args(['--no-plugins', 'command'])
1693
1695
>>> print opts['no-plugins']
1695
1697
>>> print opts['profile']
1697
>>> argv, opts = _parse_master_args(['bzr', 'command', '--profile'])
1699
>>> argv, opts = _parse_master_args(['command', '--profile'])
1699
1701
['command', '--profile']
1700
1702
>>> print opts['profile']