mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Support passing the workspace to work in.
This commit is contained in:
parent
e68b28afae
commit
db017a4edf
1 changed files with 10 additions and 0 deletions
|
@ -253,6 +253,16 @@ def parse():
|
|||
Parse the CLI options
|
||||
'''
|
||||
parser = optparse.OptionParser()
|
||||
parser.add_option(
|
||||
'-w', '--workspace',
|
||||
default=os.path.abspath(
|
||||
os.environ.get(
|
||||
'WORKSPACE',
|
||||
os.path.dirname(os.path.dirname(__file__))
|
||||
)
|
||||
),
|
||||
help='Path the execution workspace'
|
||||
)
|
||||
parser.add_option(
|
||||
'--platform',
|
||||
default=os.environ.get('JENKINS_SALTCLOUD_VM_PLATFORM', None),
|
||||
|
|
Loading…
Add table
Reference in a new issue