summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
authordsmith <dsmith>2007-08-20 14:03:56 +0000
committerdsmith <dsmith>2007-08-20 14:03:56 +0000
commit54dec22d3e36e7363f27a43534db4078b57d7c5e (patch)
treec8f44ecad4829c2b71c227153d39d99f7b5f35dd /main.cxx
parent51d74220e22628126489527776af8c13e339c1ec (diff)
downloadsystemtap-steved-54dec22d3e36e7363f27a43534db4078b57d7c5e.tar.gz
systemtap-steved-54dec22d3e36e7363f27a43534db4078b57d7c5e.tar.xz
systemtap-steved-54dec22d3e36e7363f27a43534db4078b57d7c5e.zip
2007-08-20 David Smith <dsmith@redhat.com>
From Lai Jiangshan <laijs@cn.fujitsu.com> * main.cxx (main): Make sure the '-c' and '-x' options can't be specified together.
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.cxx b/main.cxx
index e18a1331..eaf0a651 100644
--- a/main.cxx
+++ b/main.cxx
@@ -448,6 +448,12 @@ main (int argc, char * const argv [])
usage (s, 1);
}
+ if((s.cmd != "") && (s.target_pid))
+ {
+ cerr << "You can't specify -c and -x options together." <<endl;
+ usage (s, 1);
+ }
+
if (s.last_pass > 4 && release_changed)
{
if (s.verbose)