~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_options.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-07-12 03:09:41 UTC
  • mfrom: (1852.1.1 dash-arg-50984)
  • Revision ID: pqm@pqm.ubuntu.com-20060712030941-2728644bf8185775
(jam) Allow a plain '-' to be supplied as an argument. bug #50984

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        out, err = self.run_bzr_captured(['help', '-r'], retcode=3)
47
47
        self.assertContainsRe(err, r'unknown option')
48
48
 
 
49
    def test_allow_dash(self):
 
50
        """Test that we can pass a plain '-' as an argument."""
 
51
        self.assertEqual((['-'], {}), parse_args(cmd_commit(), ['-']))
 
52
 
49
53
 
50
54
#     >>> parse_args('log -r 500'.split())
51
55
#     (['log'], {'revision': [<RevisionSpec_int 500>]})