From 6694921d19f2a473372078ebb9b6dca73b913a98 Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Tue, 22 Apr 2014 14:34:02 +0300 Subject: [PATCH] add disable array find --- anduril/exec_copy.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/anduril/exec_copy.py b/anduril/exec_copy.py index f82f9c3..9e32898 100755 --- a/anduril/exec_copy.py +++ b/anduril/exec_copy.py @@ -28,10 +28,8 @@ def setup_options(): help="Input absolute path prefix. e.g. /home1/user1/project/") parser.add_argument("-o",type=str,dest="outabs",action="append",default=["."], help="Output absolute path prefix. e.g. /home2/user2/different_project/") - parser.add_argument("-q",action="store_true",dest="query",default=False, - help="Compare "+STATEFILE+" and "+DRYSTATEFILE+" to "+ - "see which components are not up-to-date. Use the anduril command: "+ - "anduril run --dry ... to create the dry state file" ) + parser.add_argument("-a",action="store_false",dest="arrays",default=True, + help="Disable finding _index (array) files. Just modify _state and nothing else." ) return parser.parse_args() def check_options(opts): @@ -180,11 +178,9 @@ def main(): opts=setup_options() opts=check_options(opts) - if opts.query: - statequery(opts.execpath) - else: + if opts.arrays: traverse(opts,opts.execpath) - statefile(opts,opts.execpath) + statefile(opts,opts.execpath) return