diff options
-rwxr-xr-x | scripts/manifest.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/manifest.py b/scripts/manifest.py index 7ca8695..4555714 100755 --- a/scripts/manifest.py +++ b/scripts/manifest.py @@ -237,6 +237,8 @@ def main(description="Manage the observation manifest (YAML format)", help="Manifest file (default: %s)" % default_file) parser.add_argument("-b", "--brief", dest="brief", action="store_true", help="Be brief") + parser.add_argument("-C", "--directory", dest="directory", + help="Change to the given directory at first") subparsers = parser.add_subparsers(dest="cmd_name", title="sub-commands", help="additional help") @@ -273,6 +275,9 @@ def main(description="Manage the observation manifest (YAML format)", # args = parser.parse_args() + if args.directory: + os.chdir(args.directory) + if os.path.exists(args.file): manifest_file = args.file else: |