~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_options.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-11 21:46:11 UTC
  • mto: This revision was merged to the branch mainline in revision 1853.
  • Revision ID: john@arbash-meinel.com-20060711214611-f3135668ec22f813
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>]})